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

@ -37,7 +37,7 @@ typedef struct {
int level;
int hilight_priority;
int hilight_color, hilight_bg_color;
char *hilight_color;
} TEXT_DEST_REC;
int format_find_tag(const char *module, const char *tag);
@ -49,6 +49,8 @@ int format_get_length(const char *str);
handles %codes. */
int format_real_length(const char *str, int len);
char *format_string_expand(const char *text);
char *format_get_text(const char *module, WINDOW_REC *window,
void *server, const char *target,
int formatnum, ...);
@ -96,7 +98,7 @@ char *strip_codes(const char *input);
/* send a fully parsed text string for GUI to print */
void format_send_to_gui(TEXT_DEST_REC *dest, const char *text);
#define FORMAT_COLOR_NOCHANGE ('0'-1)
#define FORMAT_COLOR_NOCHANGE ('0'-1) /* don't change this, at least hilighting depends this value */
#define FORMAT_STYLE_SPECIAL 0x60
#define FORMAT_STYLE_UNDERLINE (0x01 + FORMAT_STYLE_SPECIAL)