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
This commit is contained in:
Emanuele Giaquinta 2008-11-15 21:51:07 +00:00 committed by exg
commit 621761cff3
7 changed files with 45 additions and 62 deletions

View file

@ -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();