[net.info-terms] gnuemacs "cs" string confusion resolved

gnu@l5.uucp (John Gilmore) (11/15/85)

From: rms@mit-prep.arpa (Richard M. Stallman)
Subject: termcap
Message-ID: <427@mit-eddie.UUCP>
Date: 14 Nov 85 06:53:52 GMT

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);