vt100 question summary.

From: Robert McGraw (mcgraw@sunspot.sunspot.noao.edu)
Date: Mon Nov 26 1990 - 09:06:02 CST

>>Subject: vi in 4.1
>>Using vi in 4.0.3 and having a terminal type of vt100,
>>when a user was in the insert mode and hit an arrow key, it would
>>take him out of insert mode on the first hit and move the curser on
>>the next hits.
>>Under 4.1 when you hit an arrow key while in insert mode it inserts
>>the code for the arrow key.
>>This change must be due to the fact that vi uses terminfo for its terminal
>>discription instead of termcap.


Most pepole responded with a suggestion of putting maps in your .exrc
file to map the arrow keys. This is fine if you want to move while in
insert mode. The following are the maps suggested.

        Sounds like you are missing your .exrc file
        The following maps make cursor keys move around in insert mode !

   map  hx
   map OD i
   map OB ja
   map OA ka
   map OC lli

What our users wanted is to hit the arrow key to take them out of
insert mode and then move the curser. I got the code from and old termcap file
that I made into a terminfo file. Below is the termcap file that
can be converted to a terminfo.

   vt100-ky|vt100 w/no shifted keypad:\
              :ks@:ke@:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:\ <--- added this

Just added the second line to the vt100-am and made a terminfo file.


This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:05:59 CDT