Unix, clear screen
Par Romuald le avril, 04 2011, 18:44 - Lien permanent
Once again, since I didn't find anything relevant using Google, I'm posting a solution here to a simple problem I had.
To simply clear (reset) your terminal's screen in a shell, the character sequence is escape character, then c
in python
import sys sys.stdout.write("\033c")
or in perl
print "\033c";