File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ def main():
65
65
except KeyboardInterrupt : pass # catch Ctrl+C
66
66
finally :
67
67
if os .name == 'posix' : termios .tcsetattr (sys .stdin , termios .TCSADRAIN , oldsettings )
68
- print ('\x1b [0m\x1b [2J\x1b [?25h' ) # reset terminal and show cursor
68
+ print ('\x1b [0m\x1b [2J\x1b [H \x1b [ ?25h' ) # reset terminal and show cursor
69
69
70
70
if __name__ == '__main__' :
71
71
main () # by Nik
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ def main():
81
81
except KeyboardInterrupt : pass # catch Ctrl+C
82
82
finally : # ensures these run even if program is interrupted, so terminal functions properly on exit
83
83
if os .name == 'posix' : termios .tcsetattr (sys .stdin , termios .TCSADRAIN , oldsettings ) # restore terminal settings
84
- print ('\x1b [0m\x1b [2J\x1b [?25h' ) # reset terminal and show cursor
84
+ print ('\x1b [0m\x1b [2J\x1b [H \x1b [ ?25h' ) # reset terminal and show cursor
85
85
86
86
if __name__ == '__main__' :
87
87
main () # by Nik
You can’t perform that action at this time.
0 commit comments