The background/foreground of selected text is currently set by setting
ATTR_REVERSE, which flips its normal bg/fg. When the text being
selected has the same bg and fg, it won't be readable after selecting
it, either.
This may sound silly - my main use case is IRC channels using color
codes for black-on-black to mark 'spoilers'.
This patch allows that text to be read by selecting it, turning it
into text with white bg and black fg (given default values for
defaultbg/fg), just like most normal unformatted text when selected.
Received on Mon Oct 27 2014 - 03:01:24 CET