Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site mit-eddie.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!mhuxn!mhuxr!ulysses!allegra!mit-eddie!rms@prep From: rms@prep Newsgroups: net.emacs Subject: termcap Message-ID: <427@mit-eddie.UUCP> Date: Thu, 14-Nov-85 01:53:52 EST Article-I.D.: mit-eddi.427 Posted: Thu Nov 14 01:53:52 1985 Date-Received: Fri, 15-Nov-85 05:22:48 EST Sender: daemon@mit-eddi.UUCP Organization: MIT, Cambridge, MA Lines: 24 From: rms@prep (Richard M. Stallman) I have discovered the cause of the confusions about the `cs' scroll region command. Emacs has been handling %i incorrectly. Its documentation %i increment by one, no output did not tell me it should increment two arguments. Cursor motion was handled by old code I got from chris@maryland so it worked correctly. I designed the arguments to the `cs' string to make the VT100 termcap entry do the correct thing with %i working wrong. The fix to this is: In tparam.c, in function tparam, add the line argp[1] ++; just after the line case 'i': In term.c, in set_scroll_region, change the line tparam (TS_set_scroll_region, buf, start, stop); to tparam (TS_set_scroll_region, buf, start, stop - 1);