summaryrefslogtreecommitdiff
path: root/src/fe-text/term-terminfo.c
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-11-15 21:51:07 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-11-15 21:51:07 +0000
commit621761cff31437baa2a154e95c6f2461c3bcaf23 (patch)
tree45f8d6f3cede9a1307acb0a3bc55d97f634021ce /src/fe-text/term-terminfo.c
parentefe2bad59043ab0489a1cc2daf227713a50b6ccc (diff)
downloadirssi-621761cff31437baa2a154e95c6f2461c3bcaf23.zip
Handle bold/blink attributes like other attributes rather than mapping them to
the eighth bit of the color. The formats KBGCRMYW and the mirc colors are now mapped to colors 8-15. fe-text translates colors 8-15 to bold/blink+0-7 if the terminal supports only 8 colors. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4909 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/term-terminfo.c')
-rw-r--r--src/fe-text/term-terminfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c
index 7cf61e20..bc8a1868 100644
--- a/src/fe-text/term-terminfo.c
+++ b/src/fe-text/term-terminfo.c
@@ -306,7 +306,7 @@ void term_set_color(TERM_WINDOW *window, int col)
}
/* set background color */
- if (col & 0x80)
+ if (col & 0x80 && window->term->TI_colors == 8)
col |= ATTR_BLINK;
if (col & ATTR_BLINK)
current_term->set_blink(current_term);
@@ -320,7 +320,7 @@ void term_set_color(TERM_WINDOW *window, int col)
}
/* bold */
- if (col & 0x08)
+ if (col & 0x08 && window->term->TI_colors == 8)
col |= ATTR_BOLD;
if (col & ATTR_BOLD)
terminfo_set_bold();