[dev] [PATCH] [st] Use inverted defaultbg/fg for selection when bg/fg are the same

From: dequis <dx_AT_dxzone.com.ar>
Date: Sun, 26 Oct 2014 23:01:24 -0300

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 Telegram channels using color
codes for black-on-black to mark 'spoilers'.

This pull request 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 least normal unformatted text when selected.

Received on Mon Oct 27 2014 - 03:01:24 CET

This archive was generated by hypermail 2.3.0 : Mon Oct 27 2014 - 03:12:07 CET