[comp.editors] Vi terminal magicks

rpw3@amdcad.AMD.COM (Rob Warnock) (04/21/89)

In article <2590@buengc.BU.EDU> bph@buengc.bu.edu (Blair P. Houghton) writes:
+---------------
| BUT, when I've let vi run in a window, the ^[[?6l does NOT reverse the
| sticky-cursor property.  I don't know how to reverse it after vi runs in
| that window.  I go and reset the terminal, and that works.  It appears
| that vi is doing more, less, or something abjectly other than ^[[?6h...
| 
| My question IS: "does anyone out there know exactly what sort of magick
| a vi is likely to emit when running?"
+---------------

Sounds like a bug in your termcap entry.

Look in your termcap at the "is" [initialization] and "rs" [reset] strings.
I believe the "is" string is emitted when "vi" (or any other "screen mode"
program) is entered, and "rs" when it exits. An "rs" sequence is also emitted
when "vi" catches a <^Z>, and "is" emitted again when you "%%" the job. (I
just checked this, sort of, by looking at the way a vt220 switches magically
from "numeric keypad" mode to "application keypad" mode and back when you
run "vi" and exit.)

So you should check "rs" for having something missing or wrong. (Or
maybe "is" is using an overly "strong" command that "rs" can't undo?)


Rob Warnock
Systems Architecture Consultant

UUCP:	  {amdcad,fortune,sun}!redwood!rpw3
DDD:	  (415)572-2607
USPS:	  627 26th Ave, San Mateo, CA  94403