Subject: HPUX 10.x VT100 problems with vi, pine, etc

From: [email-masked] (John F. Sandhoff)
Date: 30 Aug 1996 23:47:25 GMT

Ah, good 'ol HP. At 10.x, they redefined the definition of what a VT100
looks like ('vt100 as defined by DEC vt420'), adding loads of new
definitions. Now, maybe a real VT100 is capable of all these nifty things,
but lots of the 'real world' emulators can't handle it all. Most notably to
us was that vi couldn't delete chars from the middle of a line, and neither
could pico or pine...

Here's the quick and dirty fix:

Go to a v9.x HP system and enter: 'untic vt100 > /tmp/vt100-hp9.raw'
This results in a file that contains the version 9.x definition.

Now take this file to your vesion 10.x system and (assuming the
same path and file name), enter these commands as the superuser:

  mv /usr/share/lib/terminfo/v/vt100 /usr/share/lib/terminfo/v/vt100-hp10
  mv /usr/share/lib/terminfo/v/vt100-am /usr/share/lib/terminfo/v/vt100-am-hp10
  tic /tmp/vt100-hp9.raw
      
If you ever need to return the system to its original configuration:
  mv /usr/share/lib/terminfo/v/vt100-hp10 /usr/share/lib/terminfo/v/vt100
  mv /usr/share/lib/terminfo/v/vt100-am-hp10 /usr/share/lib/terminfo/v/vt100-am
  
  (Note: the hp9 file defines vt100 and vt100-am; under hp10 these two
  definitions are separate)

    John F. Sandhoff, University Network Support
      California State University, Sacramento
        [email-masked]