Fixed #346, examine cutting off parts of output due to ANSI coloration.

This commit is contained in:
Kelketek 2013-02-06 15:07:44 -06:00
parent d5129b5065
commit 00f46d36cd
2 changed files with 56 additions and 84 deletions

View file

@ -245,4 +245,8 @@ def parse_ansi(string, strip_ansi=False, parser=ANSI_PARSER, xterm256=False):
"""
return parser.parse_ansi(string, strip_ansi=strip_ansi, xterm256=xterm256)
def raw(string):
"""
Escapes a string into a form which won't be colorized by the ansi parser.
"""
return string.replace('{','{{').replace('%','%%')