less(1) bug (and fix)
Chris Torek
chris at umcp-cs.UUCP
Sun Mar 2 13:50:17 AEST 1986
In article <28800001 at hpcvc0.UUCP> eric at hp-pcd.UUCP (Eric Gullerud) writes:
>I compiled the last posting of less(1), and found that (on HP terminals at
>least) when you scroll backwards and then quit or jump to a different
>location in the file your screen gets messed up because the contents of the
>screen BELOW the cursor weren't cleared.
>
>The fix is trivial... in screen.c, make the following change:
>
>223c223
>< sc_eol_clear = (dumb) ? NULL : tgetstr("ce", &sp);
>---
>> sc_eol_clear = (dumb) ? NULL : tgetstr("cd", &sp);
I am not sure what less uses `sc_eol_clear' for; but if the intention
is to clear to end of line, use `ce'; if it is to clear to the end
of the screen, use `cd'---but fake it if it is not available.
There is a termcap flag that indicates whether reverse scrolling
leaves text below the visible screen bottom. It is `db'. There
is a corresponding flag named `da', display retained above, that
indicates whether reverse scrolling may redisplay old scrolled
text.
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1415)
UUCP: seismo!umcp-cs!chris
CSNet: chris at umcp-cs ARPA: chris at mimsy.umd.edu
More information about the Comp.sources.bugs
mailing list