🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3557

Re: Vi terminal magicks (Re: Question about vi macros)

#3557
From: Rob Warnock
Date: Fri, 21 Apr 1989 03:55
31 lines
1818 bytes
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
Technical Details
Message-ID: <25312@amdcad.AMD.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!pasteur!ucbvax!amdcad!rpw3
References: <1915@umbc3.UMBC.EDU> <713@ecrcvax.UUCP> <2590@buengc.BU.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!pasteur!ucbvax!amdcad!rpw3
From: rpw3@amdcad.AMD.COM (Rob Warnock)
Newsgroups: comp.editors
Subject: Re: Vi terminal magicks (Re: Question about vi macros)
Message-ID: <25312@amdcad.AMD.COM>
Date: 21 Apr 89 03:55:45 GMT
References: <1915@umbc3.UMBC.EDU> <713@ecrcvax.UUCP> <2590@buengc.BU.EDU>
Reply-To: rpw3@amdcad.UUCP (Rob Warnock)
Organization: [Consultant] San Mateo, CA
Lines: 31