diff --git a/wincon/pdcscrn.c b/wincon/pdcscrn.c index dc963341..e2f4ddd9 100644 --- a/wincon/pdcscrn.c +++ b/wincon/pdcscrn.c @@ -402,7 +402,7 @@ int PDC_scr_open(void) is_nt = !(GetVersion() & 0x80000000); pdc_wt = !!getenv("WT_SESSION"); - str = getenv("ConEmuANSI"); + str = pdc_wt ? NULL : getenv("ConEmuANSI"); pdc_conemu = !!str; pdc_ansi = pdc_wt ? TRUE : pdc_conemu ? !strcmp(str, "ON") : FALSE;