Question: copy/deepcopy with the curses module?
amk at mira.erols.com
Mon Aug 16 03:51:54 CEST 1999
On Sun, 15 Aug 1999 16:51:08 GMT, Damond Walker <dwalker at iximd.com> wrote:
> What I want to do is get a snapshot of the current SIO instance. This
>would allow me to quickly save the current SIO instance in a temp. variable,
>do some screen updates, and then quickly repaint the screen by restoring the
>SIO instance to it's older value.
Here's a suggestion (that I haven't tried): create a new window the
size of the entire screen and render the SIO instance into it; this
should overwrite all the other information on the screen. Then
restore the old display by deleting the new window and refreshing the
screen. Something like 'win = stdscr.newwin(0,0) ; ... do stuff with
win ; del win ; stdscr.refresh()'...
A.M. Kuchling http://starship.python.net/crew/amk/
The garden of Destiny. Look behind you: shadow-plays of memory are forever
being enacted, on paths you walked too long ago.
-- From SANDMAN #47: "Brief Lives:7"
More information about the Python-list