diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-01-24 13:39:17 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-01-24 13:39:17 +0000 |
commit | 3e5ad9767691e3f12cfa09716501d871a9b95157 (patch) | |
tree | 463c7d6f06a0cf38bb0fe48e6af82f49cfbb5a7b | |
parent | fab544bdbe5dfa503f97ea80fb41f1e14c0294f4 (diff) | |
download | irssi-3e5ad9767691e3f12cfa09716501d871a9b95157.zip |
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
-rw-r--r-- | src/fe-text/term-terminfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
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)) { |