[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Screen dumps with panels/windows
From: |
Mike Aubury |
Subject: |
Screen dumps with panels/windows |
Date: |
24 Mar 2003 11:34:35 +0000 |
I've got an application that uses libpanel to help display the data I've
got - but I'd like to be able to take a dump of the screen to a file
(either with or without attributes under program control).
Using inch winch etc - I only seem to be able to get whats on the window
itself - eg if I try with stdscr I don't get any of the other panels
which are overlayed...
Any ideas ?
This is the sort of code I'm looking at :
for (y=0;y<sh;y++) {
for (x=0;x<sw;x++) {
attr=mvwinch(w,y,x);
if (mode==0) {
buff=(char *)&attr;
/* @todo - Fix for different ENDISMS */
fprintf(f,"%c%c",buff[2],attr&255);
}
if (mode==1) {
fprintf(f,"%c",attr&255);
}
}
fprintf(f,"\n");
}
fclose(f);
return 0;
}
- Screen dumps with panels/windows,
Mike Aubury <=