possibly OT - delete char?

Alex Martelli aleax at aleax.it
Mon Sep 16 03:41:04 EDT 2002


:B nerdy wrote:

> im making a console app. i wish to clear the line. ive got 2 ideas
> 
> - does python have a clear line method to clear the current text of line?
> - is there a character which deletes the previous printed character when
> printed?

There is no cross-platform way to control text-mode consoles, as
far as I know.  For Unix-like platforms, your best best is most
likely to use curses.  For Windows, the effbot's Console package,
http://effbot.org/efflib/console/ .


Alex




More information about the Python-list mailing list