xaizek / vifm-pdcurses (License: mostly public domain) (since 2019-03-20)
PDCurses 3.4 with vifm-specific patches applied (a couple were upstreamed)
Commit b8a6e979962f606ddeadd1e7a9eff0659c669bab

Windows Terminal supports italic and underlining, via escape codes.
Author: William McBrine
Author date (UTC): 2021-07-05 20:23
Committer name: xaizek
Committer date (UTC): 2024-03-24 22:14
Parent(s): 205e39c3a5e2adc1da981fbb0f2861cd9f5139b9
Signing key: 99DC5E4DB05F6BE2
Tree: 6f346a526644f10a94db3e017b2143e06ba832e2
File Lines added Lines deleted
wincon/pdcscrn.c 3 2
wincon/pdcwin.h 1 1
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);
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm-pdcurses

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm-pdcurses

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master