mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-02-14 21:46:51 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user