From f3508839f66d2d907de2c81a272939624d7e76c1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 17 Jun 2013 19:38:36 +0200 Subject: m + unset colour that also works on haiku MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/argparser.py b/src/argparser.py index 06ca5d6..70a3a7f 100644 --- a/src/argparser.py +++ b/src/argparser.py @@ -425,13 +425,13 @@ class ArgParser(): continue first = True colour = '36' if (index & 1) == 0 else '34' - self.print(lines[index].replace('%colour%', '\033[%s;1m' % (colour)), end=' ' * (col - lens[index])) + self.print(lines[index].replace('%colour%', '\033[%s;01m' % (colour)), end=' ' * (col - lens[index])) for line in opt_help.split('\n'): if first: first = False - self.print('%s' % (line), end='\033[21;39m\n') + self.print('%s' % (line), end='\033[00m\n') else: - self.print('%s\033[%sm%s\033[39m' % (' ' * col, colour, line)) + self.print('%s\033[%sm%s\033[00m' % (' ' * col, colour, line)) index += 1 self.print() -- cgit v1.2.3-70-g09d2