Screen dump of multiple windows in curses
Doug Rudoff
rudoff at MDI.COM
Thu Mar 21 03:46:57 AEST 1991
In article <1991Mar20.010749.6482 at MDI.COM> rudoff at MDI.COM (Doug Rudoff) writes:
>
>I have a curses program that has mulitple windows displayed at the
>same time and I would like to do a screen dump of what appears on the
>screen into a file.
>
>I thought by using curscr I would be able to look at what is actually
>displayed on the screen, but when I try to use curscr, the data is
>null (I looked at curscr->_y[0] and it was NULL).
>
>I thought curscr held the current screen image; I obviously was wrong.
>
>So can anyone give me a clue on how to get the screen image?
I should include that I'm using cursesX (X/open curses) on a
DECstation running Ultrix 3.1.
I looked at the source code for Berkeley curses and there seems to be
something called _virtscr which I think would do what I want, but it
apparently does not exist in DEC's cursesX.
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Doug RUDOFF Motorola Mobile Data Bothell, WA uunet!mdisea!rudoff
(206) 487-5937 rudoff at mdi.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
More information about the Comp.lang.c
mailing list