diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-12-04 08:55:02 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-12-04 08:55:02 +0100 |
commit | 267eeffa0ae5139edea4e4c2f1c8018c61d01d24 (patch) | |
tree | b35e179cf790e18e43589f8bb3ccc137307b3b40 /src/plugins | |
parent | 57cda6a33168d2a7d67a51f1036a9b4e9d767bb7 (diff) | |
download | weechat-267eeffa0ae5139edea4e4c2f1c8018c61d01d24.zip |
irc: add comments about irc color codes in messages
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/irc/irc-color.h | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/src/plugins/irc/irc-color.h b/src/plugins/irc/irc-color.h index af74dbb60..c0e98cccb 100644 --- a/src/plugins/irc/irc-color.h +++ b/src/plugins/irc/irc-color.h @@ -38,20 +38,26 @@ /* attributes in IRC messages for color & style (bold, ..) */ -#define IRC_COLOR_BOLD_CHAR '\x02' -#define IRC_COLOR_BOLD_STR "\x02" -#define IRC_COLOR_COLOR_CHAR '\x03' -#define IRC_COLOR_COLOR_STR "\x03" -#define IRC_COLOR_RESET_CHAR '\x0F' -#define IRC_COLOR_RESET_STR "\x0F" -#define IRC_COLOR_FIXED_CHAR '\x11' -#define IRC_COLOR_FIXED_STR "\x11" -#define IRC_COLOR_REVERSE_CHAR '\x16' -#define IRC_COLOR_REVERSE_STR "\x16" -#define IRC_COLOR_ITALIC_CHAR '\x1D' -#define IRC_COLOR_ITALIC_STR "\x1D" -#define IRC_COLOR_UNDERLINE_CHAR '\x1F' -#define IRC_COLOR_UNDERLINE_STR "\x1F" +#define IRC_COLOR_BOLD_CHAR '\x02' /* bold text */ +#define IRC_COLOR_BOLD_STR "\x02" /* [02]...[02] */ + +#define IRC_COLOR_COLOR_CHAR '\x03' /* text color: fg / fg,bg / ,bg */ +#define IRC_COLOR_COLOR_STR "\x03" /* [03]15,05...[03] */ + +#define IRC_COLOR_RESET_CHAR '\x0F' /* reset color/attributes */ +#define IRC_COLOR_RESET_STR "\x0F" /* [0F]... */ + +#define IRC_COLOR_FIXED_CHAR '\x11' /* monospaced font (ignored) */ +#define IRC_COLOR_FIXED_STR "\x11" /* [11]...[11] */ + +#define IRC_COLOR_REVERSE_CHAR '\x16' /* reverse video (fg <--> bg) */ +#define IRC_COLOR_REVERSE_STR "\x16" /* [16]...[16] */ + +#define IRC_COLOR_ITALIC_CHAR '\x1D' /* italic text */ +#define IRC_COLOR_ITALIC_STR "\x1D" /* [1D]...[1D] */ + +#define IRC_COLOR_UNDERLINE_CHAR '\x1F' /* underlined text */ +#define IRC_COLOR_UNDERLINE_STR "\x1F" /* [1F]...[1F] */ /* macros for WeeChat core and IRC colors */ |