You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before sdb exits, it should [optionally?] clear all of its output from the terminal.
This function can be used:
defclearlines(n=1):
""" Clear the past n lines from the terminal http://ascii-table.com/ansi-escape-sequences-vt-100.php """sys.stdout.write("\033[%sA"%n) # move cursor up n linessys.stdout.write("\033[J") # clear screen from cursor down
It works in xterm and urxvt, at least.
The text was updated successfully, but these errors were encountered:
Before
sdb
exits, it should [optionally?] clear all of its output from the terminal.This function can be used:
It works in xterm and urxvt, at least.
The text was updated successfully, but these errors were encountered: