From 3e5ad9767691e3f12cfa09716501d871a9b95157 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Thu, 24 Jan 2008 13:39:17 +0000 Subject: Do not assume that bit 0x80 enables blink, rather call set_blink when blink is requested. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4686 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/term-terminfo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c index e34d2ba4..7e0ea686 100644 --- a/src/fe-text/term-terminfo.c +++ b/src/fe-text/term-terminfo.c @@ -322,10 +322,10 @@ void term_set_color(TERM_WINDOW *window, int col) } /* set background color */ - if (col & ATTR_BLINK) - col |= 0x80; - else if (col & 0x80) + if (col & 0x80) col |= ATTR_BLINK; + if (col & ATTR_BLINK) + current_term->set_blink(current_term); if ((col & 0xf0) >> 4 != last_bg && ((col & 0xf0) != 0 || (col & ATTR_RESETBG) == 0)) { -- cgit v1.2.3