End all 'say' messages with a 'normal' ansi character to prevent bleedage. Also, added the beginnings of an IMC2 ansi parser.

This commit is contained in:
Greg Taylor 2009-04-25 07:13:19 +00:00
parent 0ad8c88c22
commit 9abde7b60f
5 changed files with 83 additions and 4 deletions

View file

@ -106,8 +106,7 @@ class MuxANSIParser(BaseParser):
(r'%cW', ANSITable.ansi["back_white"]),
]
ANSI_PARSER = MuxANSIParser()
def parse_ansi(string, strip_ansi=False, strip_formatting=False, parser=ANSI_PARSER):
def parse_ansi(string, strip_ansi=False, strip_formatting=False, parser=MuxANSIParser()):
"""
Parses a string, subbing color codes as needed.
"""