Have a Question?
Print

01048: Function Keys return question marks and/or graphics do not display correctly under Linux

Title:

Function Keys return question marks and/or graphics do not display correctly under Linux

Description:

There are two different versions of Linux termcap codes for function/edit keys. Using the wrong one will cause the keys to generate question marks instead of the desired function mappings. 

Confirm that the environment variable TERM is set to Linux and TERMCAP is pointing to the directory location of the termcap file that BASIS ships with Pro5/BBj products. Also confirm that the terminal emulation package is set to the correct display type. Please refer to Character Sets and Character Encoding in the online documentation for Linux and character sets in BBj.

Check the termcap entry after confirming the above information has been set if the behavior continues use the alternate termcap entry. 

Here’s one set: 

: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~:\ 
:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=\177:kd=\E[B:kh=\E[1~:\ 
:kl=\E[D:kr=\E[C:ku=\E[A: 

and here’s an alternate set: 

:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\EOT:\ 
:k6=\EOU:k7=\EOV:k8=\EOW:k9=\EOX:k0=\EOY:\ 
:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\EOT:\ 
:kh=\E[H:kb=^h:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C: 



Last Modified: 07/12/2004 Product: BBj Operating System: Linux

BASIS structures five components of their technology into the BBx Generations.

Table of Contents
Scroll to Top