Ctrl-Shift键发出蜂鸣声,不发送到终端 [英] Ctrl-Shift-key Beeps and Doesn't Send to Terminal

查看:145
本文介绍了Ctrl-Shift键发出蜂鸣声,不发送到终端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的OS X终端似乎没有识别 Ctrl - Shift 。相反,当我点击 Ctrl - Shift 和键盘上的任何其他键时,它会发出哔声。我使用Emacs,因此我不能使用许多快捷方式。这不是Bash的哔哔声,而是OS嘟嘟声。

My OS X terminal does not seem to recognise Ctrl-Shift. Instead, it beeps when I hit Ctrl-Shift and any other key on the keyboard. I use Emacs and as a result I cannot use many shortcuts. It is not the Bash beep, but the OS X beep.

如何让我的终端识别 Ctrl - Shift - anykey

How can I get my Terminal to recognise Ctrl-Shift-anykey?

推荐答案

没有通过tty传输修饰键的标准;然而,xterm定义了一种方法,一些其他终端仿真器支持它。终端不直接支持此功能,但您可以自定义终端的键盘首选项,将其他键映射到emacs识别的序列:

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:


首选项>设置> [个人资料]>键盘

Xterm的修饰键的广义编码在电脑风格的功能键 部分的 XTerm控制序列 部分

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.

您可以通过输入 Mx describe-bindings RET 来查看emacs支持的顺序。例如,emacs识别序列

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〜

并将其映射到

CM - /

你可以使用此列表来发现通过tty传达其他修饰符键序列的类似序列。

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

这篇关于Ctrl-Shift键发出蜂鸣声,不发送到终端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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