We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb9678b commit 976371bCopy full SHA for 976371b
src/term_ctl.c
@@ -186,6 +186,11 @@ static void *_term_init(FILE *fp)
186
GetConsoleMode(console->hnd, &dwMode);
187
dwMode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
188
SetConsoleMode(console->hnd, dwMode);
189
+ // Check if it worked, it will fail for Legacy console-mode
190
+ GetConsoleMode (console->hnd, &dwMode);
191
+ if (!(dwMode & ENABLE_VIRTUAL_TERMINAL_PROCESSING)) {
192
+ console->ansi = 0;
193
+ }
194
}
195
196
_term_set_color(console, FALSE, TERM_COLOR_RESET); /* Set 'console->fg' and 'console->bg' */
0 commit comments