[Tutor] Clearing the screen from the terminal
Alan Gauld
alan.gauld at yahoo.co.uk
Sat Oct 24 19:17:34 EDT 2020
On 24/10/2020 23:02, Cameron Simpson wrote:
> curses.setupterm()
> print(curses.tigetstr('clear_screen'), end='')
Nice one, I'd never have thought of that.
I've only ever used the ti functions inside a curses program to
find out if some capability is actually supported by my terminal.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list