Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: End boldface also ends background color



2016-03-24 10:38:37 +0000, Peter Stephenson:
[...]
> Even in terminfo there doesn't seem to be exit_bold_mode, unlike
> standout, reverse and underline (though it looks like standout maps to
> reverse here).
[...]

See also:

https://groups.google.com/forum/#!msg/comp.unix.programmer/IPIB4VWAK8M/BfJM-CbNVzUJ

In short there's no guarantee that resetting one attribute will
not reset others.

A solution could be to keep track of what attributes are on and
set all attributes for each of the %b/%B... 

on %B (if so was previously on): \e[0;1;3m (bold + so) (tput sgr
1 0 0 0 1 0 0 0 0), on %b: \e[0;3m (so) (tput sgr 1 0 0 0 0 0 0
0 0).

-- 
Stephane



Messages sorted by: Reverse Date, Date, Thread, Author