mirror of
https://github.com/evennia/evennia.git
synced 2026-03-31 04:57:16 +02:00
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)
|
||||
#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"):
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue