Consultor Eletrônico



Kbase P24593: Problem with the F5-F8 keys not functioning.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   07/02/2009
Status: Verified

SYMPTOM(s):

Problem with the F5-F8 keys not functioning.

Tinyterm terminal emulator.

FACT(s) (Environment):

Progress 9.1D
RedHat Linux Advanced Server

CAUSE:

Tinyterm uses xterm keycode for the function keys.

FIX:

Contact Tinyterm support.
Configure keys based on method used by Tinyterm emulator.

Steps taken in this case:

Originally only F1-F4 worked in progress
with Linux termcap and default Tinyterm settings

Tinyterm default is sending :

F1 = ^[OP
F2 = ^[OQ
F3 = ^[OR
F4 = ^[OS
F5 = ^[]Q
F6 = ^[]R
F7 = ^[]S
F8 = ^[]T
F9 = ^[]U
F10 = ^[]V
F11 = ^[]W
F12 = ^[]X

Up Arrow = ^[[A
Down Arrow = ^[[B
Left Arrow = ^[[D
Right Arrow = ^[[C

/etc/termcap for Linux shows
:k1=\E[[A:k2=\E[[B:k3=\E[[C:k4=\E[[D:k5=\E[[E:k6=\E[17~:\
:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:kB=\E[Z:kD=\E[3~:\

protermcap showed:
:GO(F1)=\E[[A:\
:GO(CTRL-X)=^x:\
:HELP(F2)=\E[[B:\
:ENTER-MENUBAR(F3)=\E[[C:\
:END-ERROR(F4)=\E[[D:\
:GET(F5)=\E[[E\
:PUT(F6)=\E[17~:\
:RECALL(F7)=\E[18~:\
:CLEAR(F8)=\E[19~:\

Changed Tinyterm to mirror the above for F5-F9 they all
worked except for F5

xterm in /etc/termcap
has :k5=\E[15~:
changed that in protermcap
:GET(F5)=\E[15~:\
and Tinyterm to \E[15~