Files
Arquivotheca.SunOS-4.1.4/usr.lib/libcurses/screen/_dumpwin.c
seta75D ff309bfe1c Init
2021-10-11 18:37:13 -03:00

46 lines
878 B
C

#ifndef lint
static char sccsid[] = "@(#)_dumpwin.c 1.1 94/10/31 SMI"; /* from S5R2 1.1 */
#endif
/*
* make the current screen look like "win" over the area covered by
* win.
*
* 7/9/81 (Berkeley) @(#)refresh.c 1.6
*/
# include "curses.ext"
static WINDOW *lwin;
#ifdef DEBUG
_dumpwin(win)
register WINDOW *win;
{
register int x, y;
register chtype *nsp;
if (!outf) {
return;
}
if (win == stdscr)
fprintf(outf, "_dumpwin(stdscr)--------------\n");
else if (win == curscr)
fprintf(outf, "_dumpwin(curscr)--------------\n");
else
fprintf(outf, "_dumpwin(%o)----------------\n", win);
for (y=0; y<win->_maxy; y++) {
if (y > 76)
break;
nsp = &win->_y[y][0];
fprintf(outf, "%d: ", y);
for (x=0; x<win->_maxx; x++) {
_sputc(*nsp, outf);
nsp++;
}
fprintf(outf, "\n");
}
fprintf(outf, "end of _dumpwin----------------------\n");
}
#endif