[comp.windows.x] XTERM AND EDITORS

MATLEVAN@EKU.BITNET (03/11/90)

Hello,

I have found that the xterm terminfo entry does not work with my system V vi
editor on (at least) the 3b2 family. In particular the "open" line command
would not work properly. The following terminfo description file seems to
have fixed the problem.

xterm|vs100|xterm terminal emulator,
        ri@,rc@,sc@,smso=\E[7m,rmso=\E[m,
        il1=\E[L, dl1=\E[M, use=vt100,

I also have occasion to use VMS. The full screen editors for VMS require
the use of the keypad. I cannot determine if the appropriate escape sequences
are built in to xterm. (ie I can't get the editors to work properly). The
following resource will map the keypad on a MacII to the appropriate escape
sequences.

XTerm.VT100.Translations: #override \
        <Key>Clear: string("\033OP")\n\
        <Key>KP_Equal: string("\033OQ")\n\
        <Key>KP_Divide: string("\033OR")\n\
        <Key>KP_Multiply: string("\033OS")\n\
        <Key>KP_7: string("\033Ow")\n\
        <Key>KP_8: string("\033Ox")\n\
        <Key>KP_9: string("\033Oy")\n\
        <Key>KP_Subtract: string("\033Om")\n\
        <Key>KP_4: string("\033Ot")\n\
        <Key>KP_5: string("\033Ou")\n\
        <Key>KP_6: string("\033Ov")\n\
        <Key>KP_Add: string("\033Ol")\n\
        <Key>KP_1: string("\033Oq")\n\
        <Key>KP_2: string("\033Or")\n\
        <Key>KP_3: string("\033Os")\n\
        <Key>KP_Enter: string("\033OM")\n
        <Key>KP_0: string("\033Op")\n\
        <Key>KP_Decimal: string("\033On")

Don't forget to set term/page=nn before invoking any TPU based utility.

Jerry
-----------------------------------------------------------------------------
| Jerry LeVan                           | Phone:(606)-622-1931              |
| Department of Computer Science        |                                   |
| Eastern Kentucky University           | Email:matlevan@eku.bitnet         |
| Richmond Ky 40475                     |                                   |
|---------------------------------------------------------------------------|
|      "The series converges so slowly that it actually diverges."          |
-----------------------------------------------------------------------------