Ctrl-Shift-key Beeps and Doesn't Send to Terminal

时光毁灭记忆、已成空白 提交于 2019-11-30 10:31:01

There is no standard for transmitting modifier keys through a tty; however, xterm defines a method, and some other terminal emulators support it. Terminal does not directly support this, but you can customize Terminal’s keyboard preferences to map some other key to the sequence that emacs recognizes:

Preferences > Settings > [profile] > Keyboard

Xterm’s generalized encoding of modifier keys is described briefly at the end of the PC-Style Function Keys section of the XTerm Control Sequences documentation.

You can see the sequences that emacs supports by entering M-x describe-bindings RET. For example, emacs recognizes the sequence

M-[ 2 7 ; 7 ; 4 7 ~

and maps it to

C-M-/

You can use this list to discover similar sequences that communicate other modifier key sequences through a tty.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!