Added {u to the ansi parser for underlining text.
This commit is contained in:
parent
2cdb13143d
commit
7d3ed681ac
2 changed files with 2 additions and 1 deletions
|
|
@ -592,7 +592,7 @@ class CmdColorTest(MuxPlayerCommand):
|
||||||
string += "\n " + " ".join(row)
|
string += "\n " + " ".join(row)
|
||||||
#print string
|
#print string
|
||||||
self.msg(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.")
|
self.msg("To combine background and foreground, add background marker last, e.g. {{r{{[b.")
|
||||||
|
|
||||||
elif self.args.startswith("x"):
|
elif self.args.startswith("x"):
|
||||||
|
|
|
||||||
|
|
@ -252,6 +252,7 @@ class ANSIParser(object):
|
||||||
(r'{_', ANSI_SPACE), # space
|
(r'{_', ANSI_SPACE), # space
|
||||||
(r'{*', ANSI_INVERSE), # invert
|
(r'{*', ANSI_INVERSE), # invert
|
||||||
(r'{^', ANSI_BLINK), # blinking text (very annoying and not supported by all clients)
|
(r'{^', ANSI_BLINK), # blinking text (very annoying and not supported by all clients)
|
||||||
|
(r'{u', ANSI_UNDERLINE), # underline
|
||||||
|
|
||||||
(r'{r', hilite + ANSI_RED),
|
(r'{r', hilite + ANSI_RED),
|
||||||
(r'{g', hilite + ANSI_GREEN),
|
(r'{g', hilite + ANSI_GREEN),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue