fix Unix print-on-second-last-line

This commit is contained in:
Samuel Sadok
2018-03-25 17:35:41 -07:00
parent ef52687a37
commit b894ba37f2
+2 -2
View File
@@ -242,9 +242,9 @@ class Logger():
# (print text)
# ESC 8: restore old cursor position
sys.stdout.write('\x1b7\x1b[1A\x1b[1S\x1b[1L', end='', flush=True)
sys.stdout.write('\x1b7\x1b[1A\x1b[1S\x1b[1L')
sys.stdout.write(Logger._VT100Colors[color] + text + Logger._VT100Colors[Logger.COLOR_DEFAULT])
sys.stdout.write('\x1b8', end='', flush=True)
sys.stdout.write('\x1b8')
sys.stdout.flush()
def print_colored(self, text, color):