symbolic links, aliases, cls clear
Floyd L. Davidson
floyd at apaflo.com
Wed Apr 12 08:58:50 EDT 2006
af.dingo at gmail.com wrote:
>If I may recommend an alternative,
>
>print "\033[H\033[J"
>
>the ansi sequence to clear the screen.
Or so you would hope (however, that is *not* what you have listed!).
Unfortunately, it is poor practice to hard code such sequences.
Instead the proper sequence should be obtained from the
appropriate database (TERMINFO or TERMCAP), and the easy way to
do that is,
tput clear
--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd at apaflo.com
More information about the Python-list
mailing list