rudoff@MDI.COM (Doug Rudoff) (03/20/91)
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? -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Doug RUDOFF Motorola Mobile Data Bothell, WA uunet!mdisea!rudoff (206) 487-5937 rudoff@mdi.com -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
rudoff@MDI.COM (Doug Rudoff) (03/21/91)
In article <1991Mar20.010749.6482@MDI.COM> rudoff@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@mdi.com -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=