summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-03-08 21:04:59 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-03-08 21:04:59 +0000
commit600e0da44344d4af75d9ba1e7d3982fcfce332b0 (patch)
tree4b74f730e27bc9ba2b7d05e2bd5260b0f33a3da5
parenta6f4afab2d9613db4fc3aa5dccfaa72aa4b69582 (diff)
downloadirssi-600e0da44344d4af75d9ba1e7d3982fcfce332b0.zip
/SET mirc_blink_fix - if ON, the bright/blink bit is stripped from MIRC
colors. Set this to ON, if your terminal shows bright background colors as blinking. Patch by pv2b git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2539 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/fe-text/gui-printtext.c2
-rw-r--r--src/fe-text/term.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/fe-text/gui-printtext.c b/src/fe-text/gui-printtext.c
index 5aa8dddc..b4862a8e 100644
--- a/src/fe-text/gui-printtext.c
+++ b/src/fe-text/gui-printtext.c
@@ -145,6 +145,8 @@ static void get_colors(int flags, int *fg, int *bg, int *attr)
colors wrap to 0, 1, ... */
if (*bg >= 0) *bg = mirc_colors[*bg % 16];
if (*fg >= 0) *fg = mirc_colors[*fg % 16];
+ if (settings_get_bool("mirc_blink_fix"))
+ *bg &= ~0x08;
}
if (*fg < 0 || *fg > 15)
diff --git a/src/fe-text/term.c b/src/fe-text/term.c
index cc49103f..a50fc8a3 100644
--- a/src/fe-text/term.c
+++ b/src/fe-text/term.c
@@ -138,6 +138,7 @@ void term_common_init(void)
settings_add_bool("lookandfeel", "colors", TRUE);
settings_add_bool("lookandfeel", "term_force_colors", FALSE);
settings_add_bool("lookandfeel", "term_auto_detach", FALSE);
+ settings_add_bool("lookandfeel", "mirc_blink_fix", FALSE);
settings_add_str("lookandfeel", "term_type", "8bit");
force_colors = FALSE;