diff options
-rw-r--r-- | win32/winansi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/winansi.c b/win32/winansi.c index 20a8cc210..ff4f4b118 100644 --- a/win32/winansi.c +++ b/win32/winansi.c | |||
@@ -121,10 +121,10 @@ int terminal_mode(int reset) | |||
121 | if (is_console(STDOUT_FILENO)) { | 121 | if (is_console(STDOUT_FILENO)) { |
122 | h = get_console(); | 122 | h = get_console(); |
123 | if (GetConsoleMode(h, &oldmode)) { | 123 | if (GetConsoleMode(h, &oldmode)) { |
124 | // Turn off DISABLE_NEWLINE_AUTO_RETURN induced by Gradle? | ||
125 | oldmode &= ~DISABLE_NEWLINE_AUTO_RETURN; | ||
126 | // Try to recover from mode 0 induced by SSH. | 124 | // Try to recover from mode 0 induced by SSH. |
127 | newmode = oldmode == 0 ? 3 : oldmode; | 125 | newmode = oldmode == 0 ? 3 : oldmode; |
126 | // Turn off DISABLE_NEWLINE_AUTO_RETURN induced by Gradle? | ||
127 | newmode &= ~DISABLE_NEWLINE_AUTO_RETURN; | ||
128 | 128 | ||
129 | if ((mode & VT_OUTPUT)) { | 129 | if ((mode & VT_OUTPUT)) { |
130 | newmode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING; | 130 | newmode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING; |