Beeps should work(?). ANSI colors had some bugs, bolds weren't working and

blinking crashed irssi.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@305 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-06-09 16:58:52 +00:00 committed by cras
commit 3fd3a03402
4 changed files with 9 additions and 11 deletions

View file

@ -144,14 +144,15 @@ static char *convert_ansi(char *str, int *fgcolor, int *bgcolor, int *flags)
/* reset colors back to default */
fg = current_theme->default_color;
bg = -1;
fl &= ~(PRINTFLAG_BEEP|PRINTFLAG_INDENT);
break;
case 1:
/* hilight */
fg |= 8;
fl |= PRINTFLAG_BOLD;
break;
case 5:
/* blink */
bg = bg == -1 ? 8 : bg | 8;
fl |= PRINTFLAG_BLINK;
break;
case 7:
/* reverse */
@ -171,7 +172,7 @@ static char *convert_ansi(char *str, int *fgcolor, int *bgcolor, int *flags)
if (*str == 'm') {
if (!hide_text_style) {
*fgcolor = fg;
*bgcolor = bg == -1 ? -1 : bg;
*bgcolor = bg;
*flags = fl;
}
str++;