[Tutor] Clearing the screen from the terminal

Cranky Frankie cranky.frankie at gmail.com
Sun Oct 25 07:29:06 EDT 2020


Agreed about negative aspects of clearing the screen. But there is a
reason. I'm doing version 1 of this program as terminal based, yet still
Model View Controller. My hope is that, once it works in the terminal, I
can then move the View part to PySimplegui without too much trouble. So
those screen redraws will turn into GUI lists that get refreshed.



Frank L. "Cranky Frankie" Palmeri, Risible Riding Raconteur & Writer
WORK Hard - PLAY Hard - READ Hard - THINK Hard


On Sat, Oct 24, 2020 at 7:20 PM Alan Gauld via Tutor <tutor at python.org>
wrote:

> 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
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>


More information about the Tutor mailing list