gnotclub / xst

st fork that uses Xresources and some pretty good patches
MIT License
536 stars 73 forks source link

Disable bold, itatlic completely? #93

Closed tmpm697 closed 4 years ago

tmpm697 commented 4 years ago

xst version: 20200704.da50afd-1 os: archlinux up-to-date

With previous version 20190916.23e12ac-1 somehow xst doesn't support bold or bold didn't work for me when I build from xst-git but in the current version 20200704.da50afd-1 when an application want to have bold enable on, xst will correctly bold it, but I don't want to have bold or italic at all -- I don't want to support application to display bold and italic.

How can I force that with xst?

I saw that config.h has default disable bold and italic, and I have below lines in config.h

int disablebold = 0;
int disableitalic = 0;

why I can still set bold and italic?

tmpm697 commented 4 years ago

How to test:

bold=$(tput bold)
normal=$(tput sgr0)
echo "this is ${bold}bold${normal} but this isn't"
neeasade commented 4 years ago

See https://github.com/gnotclub/xst#breaking-changes-with-084, set st.disablebold and st.disableitalic to 1 in .Xresources

tmpm697 commented 4 years ago

Thanks @planet36