Apply clang-format

This commit is contained in:
Martchus 2022-06-26 11:04:23 +02:00
parent 9e036a3f72
commit b1b811c57f
1 changed files with 3 additions and 3 deletions

View File

@ -95,16 +95,16 @@ bool handleVirtualTerminalProcessing()
{
// try to enable virtual terminal processing
if (enableVirtualTerminalProcessing(STD_OUTPUT_HANDLE) && enableVirtualTerminalProcessing(STD_ERROR_HANDLE)) {
return true;
return true;
}
// disable use on ANSI escape codes otherwise if it makes sense
const char *const msyscon = std::getenv("MSYSCON");
if (msyscon && std::strstr(msyscon, "mintty")) {
return false; // no need to disable escape codes if it is just mintty
return false; // no need to disable escape codes if it is just mintty
}
const char *const term = std::getenv("TERM");
if (term && std::strstr(term, "xterm")) {
return false; // no need to disable escape codes if it is some xterm-like terminal
return false; // no need to disable escape codes if it is some xterm-like terminal
}
return EscapeCodes::enabled = false;
}