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

Remap colors 0-15 for Windows Terminal.
Author: William McBrine
Author date (UTC): 2021-07-05 20:26
Committer name: xaizek
Committer date (UTC): 2024-03-24 22:14
Parent(s): b8a6e979962f606ddeadd1e7a9eff0659c669bab
Signing key: 99DC5E4DB05F6BE2
Tree: 4b2431c0868733988d2ce7f2efa4c010beed4788
File Lines added Lines deleted
wincon/pdcscrn.c 2 2
File wincon/pdcscrn.c changed (mode: 100644) (index c6436319..0d61f821)
... ... bool PDC_can_change_color(void)
667 667
668 668 int PDC_color_content(short color, short *red, short *green, short *blue) int PDC_color_content(short color, short *red, short *green, short *blue)
669 669 { {
670 if (color < 16 && !pdc_conemu)
670 if (color < 16 && !(pdc_conemu || pdc_wt))
671 671 { {
672 672 COLORREF *color_table = _get_colors(); COLORREF *color_table = _get_colors();
673 673
 
... ... int PDC_init_color(short color, short red, short green, short blue)
706 706 return OK; return OK;
707 707 } }
708 708
709 if (color < 16 && !pdc_conemu)
709 if (color < 16 && !(pdc_conemu || pdc_wt))
710 710 { {
711 711 COLORREF *color_table = _get_colors(); COLORREF *color_table = _get_colors();
712 712
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