Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: notesfiles - hp 1.2 08/01/83; site hp-pcd.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!pyramid!hplabs!hp-pcd!eric From: eric@hp-pcd.UUCP (eric) Newsgroups: net.sources.bugs Subject: less(1) bug (and fix) Message-ID: <28800001@hpcvc0.UUCP> Date: Thu, 27-Feb-86 14:42:00 EST Article-I.D.: hpcvc0.28800001 Posted: Thu Feb 27 14:42:00 1986 Date-Received: Sun, 2-Mar-86 19:06:22 EST Organization: Hewlett-Packard - Corvallis, OR Lines: 26 Nf-ID: #N:hpcvc0:28800001:000:917 Nf-From: hpcvc0!eric Feb 27 11:42:00 1986 This is the only place I can think of to post bug-related info about stuff from mod.sources... 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); This simply does a "Clear to end of screen" instead of "clear to end of line" whenever the cursor is moved to the lower left corner of your screen. This fixes the problem on HP terminals; I don't know about other terminal types. Eric Gullerud Hewlett-Packard, NID 1020 NE. Circle Blvd. Corvallis OR 97330 (503) 757-2000 ext 3255 hp-pcd!eric