命令键作为OS X Terminal.app中的元键 [英] Command key as Meta key in OS X Terminal.app

查看:90
本文介绍了命令键作为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屋!

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