From: Bob Marcan <bob.marcan@aster.si>
Organization: Aster
Newsgroups: comp.os.vms,comp.os.linux.x
Subject: Re: Help! VT100 emulators - some problems.
Lines: 278
Date: Sun, 14 Apr 2002 13:18:16 +0200
Content-Type: text/plain; charset=us-ascii
To: undisclosed-recipients:;

JF Mezei wrote:
> 
> sword7@speakeasy.org wrote:

> > For example, I tried to enter 'type/page
> > file.txt', it worked ok but ended up one-line window at bottom screen.
> > I had to get out of terminal and re-logged back into OpenVMS 7.2.
> 
> if you do a SHOW TERMINAL, it may give you a hit of why it isn't working
> fine.  When you login, VMS typically interrogates the terminal with a few
> escape sequences to find its capabilities. One of these interrogations
> involves positioning the cursor at line 256 column 256 and asking the
> terminal to return the current cursor position (in the hopes that it returns
> the rightmost and bottom most position on the screen: eg: screen size).
> you can override those settings with SET TERM/PAGE=24/WIDTH=80 for instance
> (or larger numbers if your window is bigger).
>
Since i'm an old DEC customer (1980, VMS 1.5) you will understand my
preferences.  I'm using LK46W keyboard on my Linux box. Connecting to VMS,
Tru64, Irix, Linux.  On VMS using TPU/EDT, on others Xemacs with TPU
emulation. Everything works flawlesly.  And believe me, Fred Kleinsorge
knows what is talking about.

This my .Xmodmap
----------------
!
! This is an `xmodmap' input file for Digital LK450 (XFree86) keyboards.
! Automatically generated on Wed Oct 18 21:43:08 2000 by bob with
! XKeyCaps 2.46; Copyright (c) 1999 Jamie Zawinski <jwz@jwz.org>.
! http://www.jwz.org/xkeycaps/
!
! This file makes the following changes:
!
! The "F1 Hold" key generates Escape
! The "F13 Er Line Rub Wrd" key generates F13
! The "F14 Insert/Ovrstke" key generates F14
! The "Help" key generates Help
! The "Do" key generates Execute
! The "F17" key generates F17
! The "F18 PrtSc" key generates F18
! The "F19 Scroll Lock" key generates F19, and has no modifiers
! The "F20 Pause" key generates F20
! The "Esc" key generates grave and asciitilde
! The "PF1" key generates KP_F1, and has no modifiers
! The "PF2" key generates KP_F2
! The "PF3" key generates KP_F3
! The "PF4" key generates KP_F4
! The "~ `" key generates less and greater

keycode 0x43 =  Escape
keycode 0x44 =  F2
keycode 0x45 =  F3
keycode 0x46 =  F4
keycode 0x47 =  F5
keycode 0x48 =  F6
keycode 0x49 =  F7
keycode 0x4A =  F8
keycode 0x4B =  F9
keycode 0x4C =  F10
keycode 0x5F =  F11
keycode 0x60 =  F12
keycode 0x76 =  F13
keycode 0x77 =  F14
keycode 0x78 =  Help
keycode 0x79 =  Execute
keycode 0x7A =  F17
keycode 0x6F =  F18
keycode 0x4E =  F19
keycode 0x6E =  F20
keycode 0x09 =  grave           asciitilde
keycode 0x0A =  1               exclam
keycode 0x0B =  2               at
keycode 0x0C =  3               numbersign
keycode 0x0D =  4               dollar
keycode 0x0E =  5               percent
keycode 0x0F =  6               asciicircum
keycode 0x10 =  7               ampersand
keycode 0x11 =  8               asterisk
keycode 0x12 =  9               parenleft
keycode 0x13 =  0               parenright
keycode 0x14 =  minus           underscore
keycode 0x15 =  equal           plus
keycode 0x16 =  BackSpace
keycode 0x61 =  Home
keycode 0x6A =  Insert
keycode 0x6B =  Delete
keycode 0x4D =  KP_F1
keycode 0x70 =  KP_F2
keycode 0x3F =  KP_F3
keycode 0x52 =  KP_F4
keycode 0x17 =  Tab             ISO_Left_Tab
keycode 0x18 =  q               Q
keycode 0x19 =  w               W
keycode 0x1A =  e               E
keycode 0x1B =  r               R
keycode 0x1C =  t               T
keycode 0x1D =  y               Y
keycode 0x1E =  u               U
keycode 0x1F =  i               I
keycode 0x20 =  o               O
keycode 0x21 =  p               P
keycode 0x22 =  bracketleft     braceleft
keycode 0x23 =  bracketright    braceright
keycode 0x24 =  Return
keycode 0x67 =  End
keycode 0x63 =  Prior
keycode 0x69 =  Next
keycode 0x4F =  KP_Home         KP_7
keycode 0x50 =  KP_Up           KP_8
keycode 0x51 =  KP_Prior        KP_9
keycode 0x7B =  KP_Subtract
keycode 0x25 =  Control_L
keycode 0x42 =  Caps_Lock
keycode 0x26 =  a               A
keycode 0x27 =  s               S
keycode 0x28 =  d               D
keycode 0x29 =  f               F
keycode 0x2A =  g               G
keycode 0x2B =  h               H
keycode 0x2C =  j               J
keycode 0x2D =  k               K
keycode 0x2E =  l               L
keycode 0x2F =  semicolon       colon
keycode 0x30 =  apostrophe      quotedbl
keycode 0x33 =  backslash       bar
keycode 0x62 =  Up
keycode 0x53 =  KP_Left         KP_4
keycode 0x54 =  KP_Begin        KP_5
keycode 0x55 =  KP_Right        KP_6
keycode 0x56 =  KP_Add
keycode 0x32 =  Shift_L
keycode 0x31 =  less            greater
keycode 0x34 =  z               Z
keycode 0x35 =  x               X
keycode 0x36 =  c               C
keycode 0x37 =  v               V
keycode 0x38 =  b               B
keycode 0x39 =  n               N
keycode 0x3A =  m               M
keycode 0x3B =  comma           less
keycode 0x3C =  period          greater
keycode 0x3D =  slash           question
keycode 0x3E =  Shift_R
keycode 0x64 =  Left
keycode 0x68 =  Down
keycode 0x66 =  Right
keycode 0x57 =  KP_End          KP_1
keycode 0x58 =  KP_Down         KP_2
keycode 0x59 =  KP_Next         KP_3
keycode 0x6C =  KP_Enter
keycode 0x40 =  Alt_L           Meta_L
keycode 0x41 =  space
keycode 0x71 =  Alt_R           Meta_R
keycode 0x6D =  Control_R
keycode 0x5A =  KP_Insert       KP_0
keycode 0x5B =  KP_Delete       KP_Decimal

clear Shift
clear Lock
clear Control
clear Mod1
clear Mod2
clear Mod3
clear Mod4
clear Mod5

add    Shift   = Shift_L Shift_R
add    Lock    = Caps_Lock
add    Control = Control_L Control_R
add    Mod1    = Alt_L Alt_R
-----------------------------
and this is .Xdefaults:

!+++++ vt200
!Remove key (Delete=false Remove=true)
!XTerm*deleteIsDEL: true
XTerm*cutNewline: false
!XTerm*reverseWrap: true
XTerm*dynamicColors:  on
XTerm*titeInhibit: false
XTerm*multiScroll: false
!XTerm*autoWrap: false
XTerm*autoWrap: true
!
XTerm*termName: vt220
XTerm*decTerminalID: 220
XTerm*font: 7x14bold
XTerm*visualBell: true
XTerm*saveLines: 9999
XTerm*scrollBar: true
XTerm*scrollLines: 10
XTerm*rightScrollBar: true
XTerm*jumpScroll: true
XTerm*highlightSelection:  true
XTerm*activeIcon: true
XTerm*cursorColor: red
XTerm*background: white
XTerm*foreground: black
XTerm*pointerShape:top_left_arrow
XTerm*pointerColor: red
XTerm*charClass: 32-35:32,36-37:48,38-41:32,42-43:48,44:32,45-126:48
XTerm*vt100*colorBDMode: on
XTerm*vt100*colorBD: DarkBlue
XTerm*vt100*colorULMode:on
XTerm*vt100*colorUL: DarkRed

XTerm*vt100.translations: #override\
    Meta<Key>Prior: scroll-back(1,page)\n\
    Meta<Key>Next: scroll-forw(1,page)\n\
    Meta<Key>Home: scroll-back(1000,page)\n\
    Meta<Key>End: scroll-forw(1000,page)\n\
    Meta<Key>Up: scroll-back(1,line)\n\
    Meta<Key>Down: scroll-forw(1,line)\n\
\n\
    <Key>Insert: string("\033[1~")\n\
    <Key>Home: string("\033[2~")\n\
    <Key>Delete: string("\033[4~")\n\
\n\
    <Key>End: string("\033[5~")\n\
    <Key>Prior: string("\033[3~")\n\
    <Key>Next: string("\033[6~")\n\
\n\
    <Key>Num_Lock: string("\033OP")\n\
    <Key>KP_Divide: string("\033OQ")\n\
    <Key>KP_Multiply: string("\033OR")\n\
    <Key>KP_Subtract: string("\033OS")\n\
\n\
    <Key>KP_0: string("\033Op")\n       <Key>KP_5: string("\033Ou")\n\
    <Key>KP_1: string("\033Oq")\n       <Key>KP_6: string("\033Ov")\n\
    <Key>KP_2: string("\033Or")\n       <Key>KP_7: string("\033Ow")\n\
    <Key>KP_3: string("\033Os")\n       <Key>KP_8: string("\033Ox")\n\
    <Key>KP_4: string("\033Ot")\n       <Key>KP_9: string("\033Oy")\n\
\n\
    Shift<Key>KP_Add: string("\033Om")\n\
    <Key>KP_Add: string("\033Ol")\n\
    <Key>KP_Decimal: string("\033On")\n\
    Shift<Key>KP_Enter: string("\033OM")\n\
\n\
    Ctrl<Key>F1: string("")\n           Shift<Key>F1:
string("\033[23~")\n\
    Ctrl<Key>F2: string("")\n           Shift<Key>F2:
string("\033[24~")\n\
    Ctrl<Key>F3: string("")\n           Shift<Key>F3:
string("\033[25~")\n\
    Ctrl<Key>F4: string("")\n           Shift<Key>F4:
string("\033[26~")\n\
    Ctrl<Key>F5: string("")\n           Shift<Key>F5:
string("\033[28~")\n\
    Ctrl<Key>F6: string("\033[17~")\n   Shift<Key>F6:
string("\033[29~")\n\
    Ctrl<Key>F7: string("\033[18~")\n   Shift<Key>F7:
string("\033[31~")\n\
    Ctrl<Key>F8: string("\033[19~")\n   Shift<Key>F8:
string("\033[32~")\n\
    Ctrl<Key>F9: string("\033[20~")\n   Shift<Key>F9:
string("\033[33~")\n\
    Ctrl<Key>F10: string("\033[21~")\n  Shift<Key>F10:
string("\033[34~")\n\
    Ctrl<Key>F11: string("\033[23~")\n  Shift<Key>F11:
string("\033[28~")\n\
    Ctrl<Key>F12: string("\033[24~")\n  Shift<Key>F12:
string("\033[29~")\n\
    <Key>F4: insert-selection(PRIMARY,CUT_BUFFER0)\n\
    Ctrl<Key>BackSpace:string("\010")\n <Key>BackSpace:string("\177")\n\
    \n

!----- vt200

Regards, Bob


-- 
 Bob Marcan                           mailto:bob.marcan@aster.si
 Aster                                tel:    +386 (1) 5894-329
 Nade Ovcakove 1                      fax:    +386 (1) 5894-201
 1000 Ljubljana, Slovenia                    http://www.aster.si