mirror of
https://github.com/evennia/evennia.git
synced 2026-04-05 23:47:16 +02:00
Fixed #346, examine cutting off parts of output due to ANSI coloration.
This commit is contained in:
parent
d5129b5065
commit
00f46d36cd
2 changed files with 56 additions and 84 deletions
|
|
@ -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('%','%%')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue