Hilighting updates. /HILIGHT -color, /SET hilight_color and /SET

hilight_act_color now use %codes for specifying color.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1402 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-03-17 01:52:43 +00:00 committed by cras
commit c3da7fa8ab
13 changed files with 97 additions and 152 deletions

View file

@ -226,20 +226,14 @@ static char *get_activity_list(int normal, int hilight)
g_string_append(str, "%W");
break;
default:
/*FIXME:if (window->hilight_color > 0) {
int bg;
bg = window->hilight_bg_color == -1 ?
sbar_color_background :
(window->hilight_bg_color << 4);
set_color(stdscr, bg | mirc_colors[window->hilight_color%16]);
g_string_append(str, "%M");
} else */{
g_string_append(str, "%M");
}
g_string_append(str, window->hilight_color == NULL ?
"%M" : window->hilight_color);
break;
}
g_string_sprintfa(str, "%d", window->refnum);
g_string_sprintfa(str, "%d", window->refnum);
/* make sure the background is returned to default */
g_string_append(str, "%n");
}
ret = str->len == 0 ? NULL : str->str;