[net.emacs] termcap

rms@prep (11/14/85)

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