diff options
-rw-r--r-- | win32/winansi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/winansi.c b/win32/winansi.c index b5111603c..20a8cc210 100644 --- a/win32/winansi.c +++ b/win32/winansi.c | |||
@@ -121,6 +121,8 @@ 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; | ||
124 | // Try to recover from mode 0 induced by SSH. | 126 | // Try to recover from mode 0 induced by SSH. |
125 | newmode = oldmode == 0 ? 3 : oldmode; | 127 | newmode = oldmode == 0 ? 3 : oldmode; |
126 | 128 | ||