Merge pull request #44 from LiamGow/patch-1

Fixed broken character in windows
This commit is contained in:
Georgios Verigakis
2018-01-30 09:43:54 +02:00
committed by GitHub

View File

@@ -60,7 +60,7 @@ class WritelnMixin(object):
def clearln(self):
if self.file.isatty():
print('\r\x1b[K', end='', file=self.file)
print('\r' if sys.platform.startswith('win') else '\r\x1b[K', end='', file=self.file)
def writeln(self, line):
if self.file.isatty():