命令键作为OS X Terminal.app中的元键 [英] Command key as Meta key in OS X Terminal.app
问题描述
当我解开设置中的将选项用作元键" 框,然后 做 Cmd + F (我要用bash表示正向字的 Meta + F )终端给出我出现查找字词"弹出窗口,这不是我想要的.我真正想要的是终端的行为就像xterm w.r.t.钥匙 绑定.有什么方法可以禁用此弹出窗口及其绑定吗?
When i unckeck the 'Use option as meta key' box in Settings, and then do Cmd+F (which i want to mean Meta+F for forward-word in bash) Terminal gives me a 'find word' popup, which isn't what i want. What i really want is for my Terminals to behave just like an xterm w.r.t. the key bindings. Is there any way to disable this popup and its binding?
我知道我可以只使用实际的xterm,但是出于各种原因,我想使用Terminal.
I know i could just use actual xterms, but for a variety of reasons i want to use Terminal.
先谢谢了, 埃里克
推荐答案
option as meta key
选择对 Command (苹果)键无效.如果选择了option as meta key
,则 Option 键将充当bash
和其他位置的 Meta 键;只需按 Option + F .如果取消选择它,则没有 Meta 键. (无论哪种情况,某些命令行程序都可能将传统的 ESC + char序列识别为 Meta 字符.)
The option as meta key
selection has no effect on the Command (Apple) key. If option as meta key
is selected, then the Option key acts as a Meta key in bash
and elsewhere; just press Option+F. If you de-select it, there is no Meta key. (In either case, some command line programs may recognize the traditional ESC+char sequence as Meta char.)
如果您正在运行OS X 10.6(Snow Leopard),则Apple提供了一种内置方法来更改键盘修饰键的含义,包括 Command 和 Option .转到System Preferences -> Keyboard
并单击Modifier Key...
按钮.例如,将出现一个面板,允许您交换 Option 和 Command 键的含义.但是,请注意,这是一个全局选项,它将在OS X上应用 Everywhere ,并且可能导致一些重大混乱.如果这样做,您将按照
If you are running OS X 10.6 (Snow Leopard), Apple supplies a built-in way to change the meaning of the keyboard modifier keys, including Command and Option. Go to System Preferences -> Keyboard
and click on the Modifier Key...
button. A panel will appear that allows you to, for instance, swap the meaning of the Option and Command keys. But, be warned that this is a global option and will apply everywhere on OS X and could lead to some major confusion. If you do that, you will be swimming upstream as noted here. You will likely be best served long-term by getting used to the OS X default of using the Option key as Meta and, if necessary, restoring application defaults (for Emacs
, say) to follow that convention.
FURTHER This blog post and program (untested) might be helpful.
这篇关于命令键作为OS X Terminal.app中的元键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!