st-xresources
st-xresources copied to clipboard
Broken cursor color handling
-
cursorColor
: seems to be affecting the text foreground color -
background
: seems to be affecting cursor color -
foreground
: not tested
Patch version: https://st.suckless.org/patches/xresources/st-xresources-20200604-9ba7ecf.diff
Don't know if you figured it out or not but I had the same problem and found out why it did that.
after patching st with the xresources patch it adds the resource[]
array into the config.
The problem specifically is these lines in the resource[]
:
{ "background", STRING, &colorname[256] },
{ "foreground", STRING, &colorname[257] },
{ "cursorColor", STRING, &colorname[258] },
At some point there was a change (or something) in the st config that changed the colorname[]
order.
For me the fix was to change these lines to match the ones in the colorname[]
:
{ "background", STRING, &colorname[259] },
{ "foreground", STRING, &colorname[258] },
{ "cursorColor", STRING, &colorname[256] },
Hopefully this helps.