HPE 9000 and HPE e3000 Servers
1753421 Members
4859 Online
108793 Solutions
New Discussion юеВ

keyboardbinding on console

 
SOLVED
Go to solution
Tore_1
Regular Advisor

keyboardbinding on console

Hi, as probably most has experienced, when you type on a console it is difficult to find certain characters like the "|" -pipe- character. Does anyone know how to find the mappings between these characters and the keyboard on the console?
Thanks in advance.
5 REPLIES 5
harry d brown jr
Honored Contributor

Re: keyboardbinding on console

Tore,

I've never had any issues with the 700/9x consoles or keyboards on HP 9000's. What kind of console/keyboard are you using? What "language" are you using? What kind of HP 9000 server are you using, and how is the console connected?

live free or die
harry
Live Free or Die
Tore_1
Regular Advisor

Re: keyboardbinding on console

Hi, Im not sure about the specs, but Im talking about the standard ascii terminals you find in every machine room with hpux-servers.

Tobias Hartlieb
Trusted Contributor

Re: keyboardbinding on console

Hi Tore,

you may try the following:
for pipe (|) symbol: AltGr+ or AltGr/^
for tilde (~): AltGr--

Regards.

Tobias
Ross Martin
Trusted Contributor
Solution

Re: keyboardbinding on console

Check stty -a

speed 9600 baud; line = 0;
rows = 0; columns = 0
min = 1; time = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U
eof = ^D; eol = ^@; eol2 ; swtch
stop = ^S; start = ^Q; susp ; dsusp
werase ; lnext

Sometimes these keys have been remapped under .profile (for an individual user) or /etc/profile (as a global setting for all users).

If you don't see any clue there:

# ttytype

70094

If the ttytype for the terminal you have is not what you expected (for eg. it returns 70094, but you want vt100, then you will need to modify your .profile to set the ttytype for the type that you want).

If ttytype returns what you expect then follow the line of thought below.

For a 70094 you can look in the terminfo directory:

cd /usr/lib/terminfo
ls

1 3 5 7 9 I a c e g i k m o q s u w y
2 4 6 8 D X b d f h j l n p r t v x z

cd 7
ls

700-41 70092A 70092a-w 70094A 70094a-w 743
70092 70092A-w 70094 70094A-w 70096 745
70092-w 70092a 70094-w 70094a 735 75

Read the manpages on tic and untic if you want to modify a single key. (READ these manpages before attempting to do an untic -- it requires a tic to reinstate -- it is best to make a copy of the the file you want to untic, and modify the copy -- if you make a mistake, at least you can go back to the original terminfo file.

This will show the keyboard mapping in a readable format.

untic 70094

70094|70094a|70094A|hp 7009x/239x series,
am, xhp, da, db, mir,
cols#80, lines#24, lm#0, xmc#0, nlab#8, lh#2, lw#8,
cbt=\Ei, bel=^G, cr=\r, tbc=\E3,
clear=\E&a0y0C\EJ, el=\EK, ed=\EJ$<1>, hpa=\E&a%p1%dC,
cup=\E&a%p1%dy%p2%dC, cud1=\EB, home=\E&a0y0C, cub1=\b,
cuf1=\EC, cuu1=\EA, dch1=\EP, dl1=\EM,
smacs=^N, blink=\E&dA, bold=\E&dB, dim=\E&dH,
smir=\EQ, rev=\E&dB, smso=\E&dJ, smul=\E&dD,
rmacs=^O, sgr0=\E&d@, rmir=\ER, rmso=\E&d@,
rmul=\E&d@, il1=\EL, kbs=\b, ktbc=\E3,
kclr=\EJ, kctab=\E2, kdch1=\EP, kdl1=\EM,
kcud1=\EB, krmir=\ER, kel=\EK, ked=\EJ,
kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es,
kf5=\Et, kf6=\Eu, kf7=\Ev, kf8=\Ew,
khome=\Eh, kich1=\EQ, kil1=\EL, kcub1=\ED,
kll=\EF, knp=\EU, kpp=\EV, kcuf1=\EC,
kind=\ES, kri=\ET, khts=\E1, kcuu1=\EA, ....

Hope this helps.


Tore_1
Regular Advisor

Re: keyboardbinding on console

Thanks, this is great. Im not able to assign points though.. perhaps it will pop up later.