Fixed broken character in windows

This commit is contained in:
LiamGow
2018-01-29 21:39:28 -08:00
committed by GitHub
parent 715a2e130f
commit 84c3b9197a

View File

@@ -60,7 +60,7 @@ class WritelnMixin(object):
def clearln(self): def clearln(self):
if self.file.isatty(): 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): def writeln(self, line):
if self.file.isatty(): if self.file.isatty():