mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-24 01:23:52 +08:00
fix Unix print-on-second-last-line
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user