Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
self.brown = self.magenta = self.cyan = self.reset = ""
def activate_color(self, style):
"IRC color codes."
+ if style == 'mIRC':
+ # mIRC colors are mapped as closely to the ANSI colors as possible.
+ self.bold = '\x02'
+ self.green = '\x0309'
+ self.blue = '\x0312'
+ self.red = '\x0304'
+ self.yellow = '\x0308'
+ self.brown = '\x0305'
+ self.magenta = '\x0306'
+ self.cyan = '\x0310'
+ self.reset = '\x0F'
if style == 'ANSI':
self.bold = '\x1b[1m'
self.green = '\x1b[1;32m'
<varlistentry>
<term>color</term>
<listitem>
-<para>If "ANSI", highlight notification fields with ANSI color escape sequences.
+<para>If "mIRC", highlight notification fields with mIRC color codes.
+If "ANSI", highlight notification fields with ANSI color escape sequences.
Defaults to "none" (no colors). Note: if you turn this on and
notifications stop appearing on your channel, you need to turn off
IRC's color filter on that channel. To do this you will need op