[Tutor] How to clear the screen

Alan Gauld alan.gauld at btinternet.com
Mon Oct 20 10:13:20 CEST 2008


"Chris Fuller" <cfuller084 at thinkingplanet.net> 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.





More information about the Tutor mailing list