mirror of
https://github.com/verigak/progress.git
synced 2025-12-08 19:33:24 +00:00
Fixed broken character in windows
This commit is contained in:
@@ -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():
|
||||||
|
|||||||
Reference in New Issue
Block a user