From 3dc9b3b2bb46b8272d8ddb384ff6d4431ba3875b Mon Sep 17 00:00:00 2001 From: Patrick Marsee Date: Mon, 18 Feb 2019 12:46:09 -0500 Subject: [PATCH] Fixed issue with colors bleeding off the bottom of the map --- gameshell.py | 4 ++-- shell.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gameshell.py b/gameshell.py index d9dad2a..4dc78b2 100644 --- a/gameshell.py +++ b/gameshell.py @@ -163,8 +163,8 @@ If -l is given, a map legend will be printed under the map.""" rows[-1] = ''.join(rows[-1]) print(xAxis) - print('{0}\n'.format(self.clearColor()).join(rows) + self.clearColor()) - self.clearColor() + print('{0}\n'.format(self.clearColor(False)).join(rows) + self.clearColor()) + self.setClearColor() if len(args) > 0: if args[0] == '-l' or args[0] == 'l' or args[0] == 'legend': diff --git a/shell.py b/shell.py index 2f893c5..8a683da 100644 --- a/shell.py +++ b/shell.py @@ -119,7 +119,7 @@ class Shell(object): return ret def setClearColor(self): - print(clearColor()) + print(self.clearColor()) return def run(self):