Terminfo smkx and application cursor keys and application keyboard

XTerm Control Sequences defines the following key sequences:

CSI ? 1 h  → Application Cursor Keys (DECCKM)
CSI ? 1 l  → Normal Cursor Mode (DECOM)
CSI ? 66 h → Application keypad (DECNKM)
CSI ? 66 l → Numeric keypad (DECNKM)

and Terminfo Source Format has the following entry:

Variable: keypad_xmit
Capname: smkx
Termcap: ks
Description: Put terminal in "keypad-transmit" mode

But the terminfo for xterm actually says smkx=\E[?1h\E=that seems mixed with me (smkx should affect the keyboard, not the cursor keys, right?). What am I missing here?

+4
source share
2 answers

Sounds like you're missing out \E=on the end smkx.

ESC =     Application Keypad (DECKPAM).
ESC >     Normal Keypad (DECKPNM).

are also listed on the XTerm control sequence page, and you expect them to affect the keyboard.

: vt100.

+2

CSI ? 1 h  → Normal Cursor Mode (DECOM)

,

CSI ? 1 l  → Normal Cursor Keys (DECCKM)

smkx rmkx escape-, curses, .. keypad.

ncurses ( ) , , . smkx rmkx, , , xterm FAQ ) shell?.

( ):

  • ( )
  • (6 )
  • ( )

VT100 ( ) escape- . VT220 ( xterm) / VT100 DECCKM ( XTerm Control Sequences). DEC ; , - , , , , smkx rmkx.

+3

All Articles