diff options
author | Timo Sirainen <cras@irssi.org> | 2000-07-16 17:08:53 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-07-16 17:08:53 +0000 |
commit | 04c5baf637678854b72d5d22128d03d17ae53d6e (patch) | |
tree | fcf642c14e8c80aa4958da2cd056093b70bc70bb /src/fe-text/gui-windows.h | |
parent | e8ed53bd928012c5cd61a69fd59cd709dae1cc4a (diff) | |
download | irssi-04c5baf637678854b72d5d22128d03d17ae53d6e.zip |
Don't ever add \0\0 to text queue - this might break things. Use \0 +
LINE_CMD_COLOR0 instead.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@476 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/gui-windows.h')
-rw-r--r-- | src/fe-text/gui-windows.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fe-text/gui-windows.h b/src/fe-text/gui-windows.h index 4eb532e7..bcde75c5 100644 --- a/src/fe-text/gui-windows.h +++ b/src/fe-text/gui-windows.h @@ -16,6 +16,7 @@ enum { LINE_CMD_EOL=0x80, /* line ends here. */ LINE_CMD_CONTINUE, /* line continues in next block */ LINE_CMD_OVERFLOW, /* buffer overflow! */ + LINE_CMD_COLOR0, /* change to black, would be same as \0\0 but it breaks things.. */ LINE_CMD_COLOR8, /* change to dark grey, normally 8 = bold black */ LINE_CMD_UNDERLINE, /* enable/disable underlining */ LINE_CMD_INDENT /* if line is split, indent it at this position */ @@ -37,7 +38,10 @@ typedef struct { typedef struct { /* text in the line. \0 means that the next char will be a color or command. <= 127 = color or if 8.bit is set, the - first 7 bits are the command. See LINE_CMD_xxxx. */ + first 7 bits are the command. See LINE_CMD_xxxx. + + DO NOT ADD BLACK WITH \0\0 - this will break things. Use + LINE_CMD_COLOR0 instead. */ char *text; int level; |