bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a portable way to copy SCREEN


From: Thomas Dickey
Subject: Re: Is there a portable way to copy SCREEN
Date: Wed, 25 Feb 2009 15:17:38 -0500 (EST)

On Wed, 25 Feb 2009, Bryan Christ wrote:

Thomas

I noticed that scr_dump() is implemented as basically putwin().
Shouldn't I be able to simply do a scr_dump() then a getwin() as a means
of copying a SCREEN to a WINDOW?

not really - that only copies the character-cell information (which
I already noted you could do in-memory via documented calls).

SCREENs contain the current (curscr), working (newscr) and standard
window (stdscr) as well as the terminal description, the input FIFO,
and various flags set as a side effect of working with those.


Cameron, what does this look like on pdcurses?

Bryan

On Wed, 2009-02-25 at 17:49 +0000, Thomas Dickey wrote:
On Wed, 25 Feb 2009, Bryan Christ wrote:

If I wanted to copy the contents of a SCREEN to a WINDOW, is there a
good way of doing this?  I am hesitant to simply copy struct screen ->
*_curscr

SCREEN and WINDOW are different types.

From the outset, everyone's implemented SCREEN as an opaque type.
So you can't copy it...




--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]