diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-20 07:14:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-20 07:14:11 +0000 |
commit | 4977c0ba2f19c017c027449f510b7342131e23ac (patch) | |
tree | 5d58daad2bb4f653a8c9020578784492c7ac10b2 /usr.bin/less | |
parent | 3d678b8e73b29dec922fbbb8986dd5af5c0408c3 (diff) |
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
Diffstat (limited to 'usr.bin/less')
-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; } |