summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-11-29 12:09:31 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-11-29 12:09:31 +0000
commitb40901efba00867e8e619faae04b7737ba949bc0 (patch)
tree76498541794947095c6ba0d4a9c53ebdd1b21d39 /src/fe-text
parent266193aa7e9e5e76799523168b9f944e296029de (diff)
downloadirssi-b40901efba00867e8e619faae04b7737ba949bc0.zip
When /SET colors is OFF, irssi displays all non-default background colors as reversed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2164 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/term-terminfo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c
index b92ec123..8ed62ced 100644
--- a/src/fe-text/term-terminfo.c
+++ b/src/fe-text/term-terminfo.c
@@ -263,6 +263,9 @@ void term_set_color(TERM_WINDOW *window, int col)
terminfo_set_normal();
}
+ if (!term_use_colors && (col & 0xf0) != 0)
+ col |= ATTR_REVERSE;
+
/* reversed text (use standout) */
if (col & ATTR_REVERSE) {
if ((last_attrs & ATTR_REVERSE) == 0)