pdc_wt overrides pdc_conemu -- allows starting WT from ConEmu. (Note that the reverse seems unnecessary -- some

of the ConEmu checks may be unneeded?)
This commit is contained in:
William McBrine
2021-07-05 19:41:05 -04:00
parent 6e3f681509
commit 737500862b

View File

@@ -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;