# FAQ(15) - Termcap; Some of the keys do not work - how can I bind them ?

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## QUESTION (15)

Termcap; Some of the keys do not work - how can I bind them ?

## ANSWER

In your user setup <user>.emf add the new keys. You have to be careful as to the environment and probably need to do something like the following:-

    ; First check we are not an Xterm
    !if &not $use-x
        ; Quick check on the terminal type. We probably need to
        ; distinguish between terminal types for different bindings
        !if &seq $TERM "myterm"
            translate-key "<from>" "<to>"
            ...
            translate-key "<from>" "<to>"
        !endif
    !endif

See translate-key(2) for details of translating termcap keys. See describe-key(2) to help identify the key.

[FAQ Index].

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>