"Chris Fuller" <[EMAIL PROTECTED]> wrote

want to clear the screen, printing the control sequence ESC[2J is all you
need.

print chr(0x1b) + '[2J'

Only on *nix with a VT100 compatible terminal.
Doesn't work for vanilla DOS window or Tektronix mode
terminals, 3270 etc.

Thats why screen control is such a messy topic.

Alan G.



_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to