|
|
1.1 root 1: #include "curses.ext"
2: /* @(#) set_term.c: 1.1 10/15/83 (1.13 8/20/82) */
3:
4: struct screen *
5: set_term(new)
6: struct screen *new;
7: {
8: register struct screen *rv = SP;
9:
10: #ifdef DEBUG
11: if(outf) fprintf(outf, "setterm: old %x, new %x\n", rv, new);
12: #endif
13:
14: #ifndef NONSTANDARD
15: SP = new;
16: #endif NONSTANDARD
17:
18: cur_term = SP->tcap;
19: LINES = lines;
20: COLS = columns;
21: stdscr = SP->std_scr;
22: curscr = SP->cur_scr;
23: return rv;
24: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.