OS X终端:Meta键+ alt功能同时 [英] OS X Terminal: Meta key + alt functionality at the same time

查看:125
本文介绍了OS X终端:Meta键+ alt功能同时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法使用 alt / 选项键作为元键,但仍然可以使用它来制作一些需要它的字符?

Is there a way to use an alt / option key as a meta key but still be able to use it to make some characters which need it?

例如,在我的本地键盘布局中:

For example, in my local keyboard layout:


  • @ alt + 2

  • \ alt + shift + 7

  • | alt + 7

  • 等。

  • @ is alt + 2
  • \ is alt + shift + 7
  • | is alt + 7
  • etc.

所以,如果我将 alt 设置为元键,我不能再这些字符了。另一方面,使用按Esc键,释放esc键,按键使元键序列使我的手受伤。

So, if I set alt as a meta key, I can't make those characters anymore. On the other hand, using "press esc, release esc, press a key" to make meta key sequences makes my hands hurt.

任何具有国际键盘的Emacs用户解决这个问题,请给你任何可能的提示! :)

Any Emacs users with international keyboards who have solved this, please give any tips you might have! :)

编辑:

看来我可以设置 alt 作为元键,然后在inputrc中添加这些设置:\e2:@这个工作在bash shell中,但它仍然不能使用Emacs,所以没有好处。

It appears that I can set alt as a meta key and then add these kind of settings in inputrc: "\e2": "@" This works in the bash shell but it still won't work with Emacs though, so no good.

推荐答案

想想使用Mac OS X的全功能Emacs使用Carbon Emacs,但我相信别人(说Aqua Emacs或X11 Emacs)会做这个伎俩。

Think about using a full featured Emacs for Mac OS X. I use Carbon Emacs but I believe others (say Aqua Emacs or X11 Emacs) would do the trick.

如果你坚持在终端中使用Emacs,你可以使用 Cx 8 前缀作为组合键。尝试 Cx 8 Ch 以获取可能性列表。

If you insist on using Emacs in a terminal you can use the C-x 8 prefix as a compose key. Try C-x 8 C-h to get a list of possibilities.

请参阅 http://www.emacswiki.org/emacs/EmacsForMacOS

这篇关于OS X终端:Meta键+ alt功能同时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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