From 7d3ed681ac4fc87909ecf837e62b509f7a72b1a5 Mon Sep 17 00:00:00 2001 From: Jake Shasteen Date: Sat, 15 Aug 2015 00:33:57 -0400 Subject: [PATCH] Added {u to the ansi parser for underlining text. --- evennia/commands/default/player.py | 2 +- evennia/utils/ansi.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/evennia/commands/default/player.py b/evennia/commands/default/player.py index d8591f5bbc..0d39dcdb42 100644 --- a/evennia/commands/default/player.py +++ b/evennia/commands/default/player.py @@ -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"): diff --git a/evennia/utils/ansi.py b/evennia/utils/ansi.py index 1e060d6aac..0fa577da47 100644 --- a/evennia/utils/ansi.py +++ b/evennia/utils/ansi.py @@ -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),