diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-06-17 19:38:36 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-06-17 19:38:36 +0200 |
commit | f3508839f66d2d907de2c81a272939624d7e76c1 (patch) | |
tree | 727b7728ff374d65ed408d6ce50112f35fda5b5c /src | |
parent | typo (diff) | |
download | argparser-f3508839f66d2d907de2c81a272939624d7e76c1.tar.gz argparser-f3508839f66d2d907de2c81a272939624d7e76c1.tar.bz2 argparser-f3508839f66d2d907de2c81a272939624d7e76c1.tar.xz |
m + unset colour that also works on haiku
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/argparser.py | 6 |
1 files changed, 3 insertions, 3 deletions
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() |