Added {u to the ansi parser for underlining text.

This commit is contained in:
Jake Shasteen 2015-08-15 00:33:57 -04:00
parent 2cdb13143d
commit 7d3ed681ac
2 changed files with 2 additions and 1 deletions

View file

@ -592,7 +592,7 @@ class CmdColorTest(MuxPlayerCommand):
string += "\n " + " ".join(row)
#print string
self.msg(string)
self.msg("{{X : black. {{/ : return, {{- : tab, {{_ : space, {{* : invert")
self.msg("{{X : black. {{/ : return, {{- : tab, {{_ : space, {{* : invert, {{u : underline")
self.msg("To combine background and foreground, add background marker last, e.g. {{r{{[b.")
elif self.args.startswith("x"):

View file

@ -252,6 +252,7 @@ class ANSIParser(object):
(r'{_', ANSI_SPACE), # space
(r'{*', ANSI_INVERSE), # invert
(r'{^', ANSI_BLINK), # blinking text (very annoying and not supported by all clients)
(r'{u', ANSI_UNDERLINE), # underline
(r'{r', hilite + ANSI_RED),
(r'{g', hilite + ANSI_GREEN),