diff options
author | Benno Fünfstück <benno.fuenfstueck@gmail.com> | 2017-12-26 16:38:27 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2017-12-26 22:54:06 +0100 |
commit | e829e13bb1a830e0cdce749ea0865cd93af1846c (patch) | |
tree | d7094920b3bad3fda25e6bac42a110ed12d666ad /win.h | |
parent | c1d23afa9c44cc29818c538126790ae90a64a3c5 (diff) | |
download | st-e829e13bb1a830e0cdce749ea0865cd93af1846c.tar.gz st-e829e13bb1a830e0cdce749ea0865cd93af1846c.tar.bz2 st-e829e13bb1a830e0cdce749ea0865cd93af1846c.zip |
Apply ATTR_REVERSE after ATTR_FAINT
An example where the new behaviour makes more sense:
Suppose some text is formatted with ATTR_FAINT for red for the foreground, so it
is rendered in a dark red. In that case, when selected with the mouse, the
intended behaviour is that foreground and background color are swapped: so the
selection should be rendered in dark red and the text in the default background
color.
Before this patch, what happened was that the selection would be in normal red
and the text in the darkened background color, making it almost unreadable.
For an example application that uses the FAINT attribute, try dmesg from
util-linux with color support, it uses FAINT for segfault messages.
Diffstat (limited to 'win.h')
0 files changed, 0 insertions, 0 deletions