version 1.5, 1997/11/12 06:28:26 |
version 1.6, 1998/07/20 07:14:10 |
|
|
* that switch to/from an alternate screen, and we're in quit_at_eof |
* that switch to/from an alternate screen, and we're in quit_at_eof |
* (eg, more(1)). |
* (eg, more(1)). |
*/ |
*/ |
if (!more_mode) { |
if (!quit_at_eof && !more_mode) { |
sc_init = tgetstr("ti", &sp); |
sc_init = tgetstr("ti", &sp); |
sc_deinit = tgetstr("te", &sp); |
sc_deinit = tgetstr("te", &sp); |
} |
} |
|
|
if (no_init) |
if (no_init) |
return; |
return; |
tputs(sc_init, sc_height, putchr); |
tputs(sc_init, sc_height, putchr); |
#if 0 |
|
tputs(sc_s_keypad, sc_height, putchr); |
tputs(sc_s_keypad, sc_height, putchr); |
#endif |
|
init_done = 1; |
init_done = 1; |
} |
} |
|
|
|
|
return; |
return; |
if (!init_done) |
if (!init_done) |
return; |
return; |
#if 0 |
|
tputs(sc_e_keypad, sc_height, putchr); |
tputs(sc_e_keypad, sc_height, putchr); |
#endif |
|
tputs(sc_deinit, sc_height, putchr); |
tputs(sc_deinit, sc_height, putchr); |
init_done = 0; |
init_done = 0; |
} |
} |