diff options
author | 1998-07-20 07:14:10 +0000 | |
---|---|---|
committer | 1998-07-20 07:14:10 +0000 | |
commit | b475f1744c50e37b428c4b4f5ce37a231cd60b7e (patch) | |
tree | 28392e97941c1510c9be6c3a0840356c1aa83f6b | |
parent | no need for NMBCLUSTERS; noted by fries (diff) | |
download | wireguard-openbsd-b475f1744c50e37b428c4b4f5ce37a231cd60b7e.tar.xz wireguard-openbsd-b475f1744c50e37b428c4b4f5ce37a231cd60b7e.zip |
use sc_e_keypad, sc_s_keypad, and use ti/te. Undoes previous revs which disabled. Unclear why that was done, must wait for that old bug to resurface and fix it in a different way
-rw-r--r-- | usr.bin/less/screen.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/less/screen.c b/usr.bin/less/screen.c index 6d081d8c5e0..e91d905dead 100644 --- a/usr.bin/less/screen.c +++ b/usr.bin/less/screen.c @@ -773,7 +773,7 @@ get_term() * that switch to/from an alternate screen, and we're in quit_at_eof * (eg, more(1)). */ - if (!more_mode) { + if (!quit_at_eof && !more_mode) { sc_init = tgetstr("ti", &sp); sc_deinit = tgetstr("te", &sp); } @@ -1001,9 +1001,7 @@ init() if (no_init) return; tputs(sc_init, sc_height, putchr); -#if 0 tputs(sc_s_keypad, sc_height, putchr); -#endif init_done = 1; } @@ -1017,9 +1015,7 @@ deinit() return; if (!init_done) return; -#if 0 tputs(sc_e_keypad, sc_height, putchr); -#endif tputs(sc_deinit, sc_height, putchr); init_done = 0; } |