Terminfo smkx和应用程序光标键与应用程序键盘 [英] Terminfo smkx and Application Cursor Keys vs Application keypad

查看:184
本文介绍了Terminfo smkx和应用程序光标键与应用程序键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

XTerm控制序列指定以下键序列:

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)

Terminfo源格式具有以下条目:

and the Terminfo Source Format has the following entry:

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

但是xterm的terminfo实际上是smkx=\E[?1h\E=,这似乎让我感到困惑(smkx应该会影响键盘,而不是光标键,对吗?).我在这里想念什么?

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

推荐答案

似乎您缺少smkx末尾的\E=.

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

也在"XTerm控制序列"页面上列出,您希望它们会影响键盘.

are listed on the XTerm Control Sequences page as well and you would expect them to affect the keypad.

我在这里找到了一个相关的问题:在vt100终端仿真器中的键盘传输模式.

I found a related question here: keyboard transmit mode in vt100 terminal emulator.

这篇关于Terminfo smkx和应用程序光标键与应用程序键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆