Skip to content

Commit

Permalink
derp
Browse files Browse the repository at this point in the history
  • Loading branch information
HerpDerpinstine committed Dec 8, 2021
1 parent 0d9bfa2 commit 8008e11
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Bootstrap/Utils/Console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ bool Console::Initialize()
if (Core::IsRunningInWine())
UseLegacyColoring = true;

mode |= ENABLE_LINE_INPUT | ENABLE_PROCESSED_INPUT;
mode |= (ENABLE_LINE_INPUT | ENABLE_PROCESSED_INPUT);
if (!SetConsoleMode(OutputHandle, mode))
{
UseLegacyColoring = true;
mode &= ~ENABLE_LINE_INPUT | ENABLE_PROCESSED_INPUT;
mode &= ~(ENABLE_LINE_INPUT | ENABLE_PROCESSED_INPUT);
}
else
{
Expand All @@ -75,9 +75,7 @@ bool Console::Initialize()
}

mode |= ENABLE_EXTENDED_FLAGS;
mode &= ~ENABLE_MOUSE_INPUT;
mode &= ~ENABLE_WINDOW_INPUT;
mode &= ~ENABLE_INSERT_MODE;
mode &= ~(ENABLE_MOUSE_INPUT | ENABLE_WINDOW_INPUT | ENABLE_INSERT_MODE);
SetConsoleMode(OutputHandle, mode);

return true;
Expand Down

0 comments on commit 8008e11

Please sign in to comment.