Operating System - OpenVMS
1753948 Members
7282 Online
108811 Solutions
New Discussion юеВ

Re: change keyboard layout in DECterm

 
Bojan Nemec
Honored Contributor

Re: change keyboard layout in DECterm

Joseph,

I try with set term/numeric -/application but the keyboard is always application.

Bojan
Joseph Huber_1
Honored Contributor

Re: change keyboard layout in DECterm

Yup, made just my own tests on Linux workstation: there is apparently no way to make xterm executing the switch keypad-mode escape sequences.
The nearest approch seems to be to have 2 vmsterm setups, one for the application keypad, one for numerical keypad. I don't know the exact xterm syntax, but one has to replace the "string(x)" part of the kp_x definitions by the plain text as written on the keycaps.
http://www.mpp.mpg.de/~huber
Joseph Huber_1
Honored Contributor

Re: change keyboard layout in DECterm

I made a version of vmsterm, which defines the numeric keypad:
http://wwwvms.mppmu.mpg.de/~huber/vmsnet/vmsterm_numkp

but of course for unexperienced users that's probably not convenient: if one enters a keypad editor in this mode, it's tough to come out !
http://www.mpp.mpg.de/~huber
Galen Tackett
Valued Contributor

Re: change keyboard layout in DECterm

Joseph, Bojan, and others,

The vmsterm script is just what I was looking for. I too will be using it with a simh VMS system running on OS X. The part about application vs. numeric keypad doesn't matter for me.

Thanks!

Galen

Bojan Nemec
Honored Contributor

Re: change keyboard layout in DECterm

Ok, I think I have found the solution.

Accidentaly I try the xterm from linux with the VMS keyboard set and I see that it work OK (except delete, which can be modified).
Now I take the source distribution of xterm and modify it to take two more arguments in the command line (-Fi focus in command and -Fo focus out command). When the xterm program receive the FocusIn or FocusOut event, I execute the shell command which is associated with the event. For the commands I inserted "xmodmap xmodmap.vms" for FocusIn and "xmodmap xmodmap.normal" for FocusOut.

The first tests looks good.

Bojan