|
|
1.1 ! root 1: /* @(#) _dumpwin.c: 1.1 10/15/83 (1.14 3/6/83) */ ! 2: ! 3: /* ! 4: * make the current screen look like "win" over the area covered by ! 5: * win. ! 6: * ! 7: * 7/9/81 (Berkeley) @(#)refresh.c 1.6 ! 8: */ ! 9: ! 10: # include "curses.ext" ! 11: ! 12: static WINDOW *lwin; ! 13: ! 14: #ifdef DEBUG ! 15: _dumpwin(win) ! 16: register WINDOW *win; ! 17: { ! 18: register int x, y; ! 19: register chtype *nsp; ! 20: ! 21: if (!outf) { ! 22: return; ! 23: } ! 24: if (win == stdscr) ! 25: fprintf(outf, "_dumpwin(stdscr)--------------\n"); ! 26: else if (win == curscr) ! 27: fprintf(outf, "_dumpwin(curscr)--------------\n"); ! 28: else ! 29: fprintf(outf, "_dumpwin(%o)----------------\n", win); ! 30: for (y=0; y<win->_maxy; y++) { ! 31: if (y > 76) ! 32: break; ! 33: nsp = &win->_y[y][0]; ! 34: fprintf(outf, "%d: ", y); ! 35: for (x=0; x<win->_maxx; x++) { ! 36: _sputc(*nsp, outf); ! 37: nsp++; ! 38: } ! 39: fprintf(outf, "\n"); ! 40: } ! 41: fprintf(outf, "end of _dumpwin----------------------\n"); ! 42: } ! 43: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.