st-xresources icon indicating copy to clipboard operation
st-xresources copied to clipboard

Broken cursor color handling

Open ismaell opened this issue 2 years ago • 1 comments

  • 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

ismaell avatar Mar 18 '22 15:03 ismaell

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.

Nikkevm avatar Jan 26 '23 22:01 Nikkevm