File wincon/pdcscrn.c changed (mode: 100644) (index e6640a37..c6436319) |
... |
... |
static short ansitocurs[16] = |
36 |
36 |
|
|
37 |
37 |
short pdc_curstoreal[16], pdc_curstoansi[16]; |
short pdc_curstoreal[16], pdc_curstoansi[16]; |
38 |
38 |
short pdc_oldf, pdc_oldb, pdc_oldu; |
short pdc_oldf, pdc_oldb, pdc_oldu; |
39 |
|
bool pdc_conemu, pdc_ansi; |
|
|
39 |
|
bool pdc_conemu, pdc_wt, pdc_ansi; |
40 |
40 |
|
|
41 |
41 |
enum { PDC_RESTORE_NONE, PDC_RESTORE_BUFFER }; |
enum { PDC_RESTORE_NONE, PDC_RESTORE_BUFFER }; |
42 |
42 |
|
|
|
... |
... |
int PDC_scr_open(int argc, char **argv) |
413 |
413 |
|
|
414 |
414 |
is_nt = !(GetVersion() & 0x80000000); |
is_nt = !(GetVersion() & 0x80000000); |
415 |
415 |
|
|
|
416 |
|
pdc_wt = !!getenv("WT_SESSION"); |
416 |
417 |
str = getenv("ConEmuANSI"); |
str = getenv("ConEmuANSI"); |
417 |
418 |
pdc_conemu = !!str; |
pdc_conemu = !!str; |
418 |
|
pdc_ansi = pdc_conemu ? !strcmp(str, "ON") : FALSE; |
|
|
419 |
|
pdc_ansi = pdc_wt ? TRUE : pdc_conemu ? !strcmp(str, "ON") : FALSE; |
419 |
420 |
|
|
420 |
421 |
GetConsoleScreenBufferInfo(pdc_con_out, &csbi); |
GetConsoleScreenBufferInfo(pdc_con_out, &csbi); |
421 |
422 |
GetConsoleScreenBufferInfo(pdc_con_out, &orig_scr); |
GetConsoleScreenBufferInfo(pdc_con_out, &orig_scr); |
File wincon/pdcwin.h changed (mode: 100644) (index dab1f76b..08d3579d) |
... |
... |
extern DWORD pdc_quick_edit; |
22 |
22 |
extern DWORD pdc_last_blink; |
extern DWORD pdc_last_blink; |
23 |
23 |
extern short pdc_curstoreal[16], pdc_curstoansi[16]; |
extern short pdc_curstoreal[16], pdc_curstoansi[16]; |
24 |
24 |
extern short pdc_oldf, pdc_oldb, pdc_oldu; |
extern short pdc_oldf, pdc_oldb, pdc_oldu; |
25 |
|
extern bool pdc_conemu, pdc_ansi; |
|
|
25 |
|
extern bool pdc_conemu, pdc_wt, pdc_ansi; |
26 |
26 |
|
|
27 |
27 |
extern void PDC_blink_text(void); |
extern void PDC_blink_text(void); |