From: Eric S. Raymond Date: Mon, 8 Oct 2012 17:25:04 +0000 (-0400) Subject: Correct the ANSI highlights. X-Git-Tag: 1.10~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=440c49b6eff41c8b774131b57928b9df52e31077;p=irker.git Correct the ANSI highlights. --- diff --git a/irkerhook.py b/irkerhook.py index 369d5c9..17abef8 100755 --- a/irkerhook.py +++ b/irkerhook.py @@ -116,12 +116,12 @@ class GenericExtractor: self.brown = '\x035' self.reset = '\x0F' if style == 'ANSI': - self.bold = '\x1b[1m;' - self.green = '\x1b[1;2m;' - self.blue = '\x1b[1;4m;' - self.yellow = '\x1b[1;3m;' - self.brown = '\x1b[3m;' - self.reset = '\x1b[0m;' + self.bold = '\x1b[1m' + self.green = '\x1b[1;32m' + self.blue = '\x1b[1;34m' + self.yellow = '\x1b[1;33m' + self.brown = '\x1b[33m' + self.reset = '\x1b[0m' def load_preferences(self, conf): "Load preferences from a file in the repository root." if not os.path.exists(conf):