Clearing the screen

Graham graham.abbott at gmail.com
Wed Feb 15 17:16:46 EST 2006


you could always use ANSI escape codes:

print "\\033[2J"

for a screen clear, or

print "\\022[2j \033[0;0H"

to clear and reset the way "os.system('clear')" would work.

check out http://www.termsys.demon.co.uk/vtansi.htm

Seems like all that mud programming came in handy after all.

Graham.




More information about the Python-list mailing list