[comp.unix.aix] Mapping of <del> key in vi

jpe@egr.duke.edu (John P. Eisenmenger) (05/22/91)

For some reason "vi" on our RS/6000 (all versions so far) decides to map
functions to the <del> key for vt100 and xterm terminal types.  We've
corrected this problem by importing a terminal description from another
machine, but this introduces tabbing errors.  Does anyone know what field
"vi" uses to decide to do the mapping, or know a clean way of fixing this?

Thanks in advance,
 John Eisenmenger
 Duke University
 Dept. of Electrical Engineering.

jpe@egr.duke.edu (John P. Eisenmenger) (05/22/91)

From article <1444@cameron.egr.duke.edu>, by jpe@egr.duke.edu (John P. Eisenmenger):
| For some reason "vi" on our RS/6000 (all versions so far) decides to map
| functions to the <del> key for vt100 and xterm terminal types.  We've
| corrected this problem by importing a terminal description from another
| machine, but this introduces tabbing errors.  Does anyone know what field
| "vi" uses to decide to do the mapping, or know a clean way of fixing this?
| 
| Thanks in advance,
|  John Eisenmenger
|  Duke University
|  Dept. of Electrical Engineering.

I found it by experimentation.  It turns out to be the "kdch1" field in the
"vt100-am" entry in /usr/lib/terminfo/dec.ti.  By removing this field and
recompiling the file with tic "vi" now works properly.

-John