dcat / st-xresources

simple terminal with Xresource support
MIT License
43 stars 4 forks source link

Broken cursor color handling #8

Open ismaell opened 2 years ago

ismaell commented 2 years ago

Patch version: https://st.suckless.org/patches/xresources/st-xresources-20200604-9ba7ecf.diff

Nikkevm commented 1 year ago

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.