ASCII control code processing appears to be (incorrectly) always enabled

for WriteConsole() in Windows Terminal, making it impossible to pass
some of the CP437 altcharset. The kludge is to fall back to the non-ANSI
mode (no extended attributes).
This commit is contained in:
William McBrine
2021-07-06 03:44:20 -04:00
parent 737500862b
commit b6d6abbf3a

View File

@@ -404,7 +404,11 @@ int PDC_scr_open(void)
pdc_wt = !!getenv("WT_SESSION");
str = pdc_wt ? NULL : getenv("ConEmuANSI");
pdc_conemu = !!str;
pdc_ansi = pdc_wt ? TRUE : pdc_conemu ? !strcmp(str, "ON") : FALSE;
pdc_ansi =
#ifdef PDC_WIDE
pdc_wt ? TRUE :
#endif
pdc_conemu ? !strcmp(str, "ON") : FALSE;
GetConsoleScreenBufferInfo(pdc_con_out, &csbi);
GetConsoleScreenBufferInfo(pdc_con_out, &orig_scr);