Control + , 在 Terminal.app 中 [英] Control + , in Terminal.app

查看:18
本文介绍了Control + , 在 Terminal.app 中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 emacs 的窗口版中使用快捷方式 C-,.

I use the shortcut C-, with the window version of emacs.

(global-set-key (kbd "C-,") 'dabbrev-expand)

我的问题是这个快捷方式在 emacs 的控制台版本中不起作用.

My problem is that this shortcut does not work in the console version of emacs.

我尝试了很多东西(.inputrcset bind-tty-special-chars offbind 命令在.bashrc) 但似乎没有任何效果;我从来没有用这种组合键收到过任何东西.

I've tried many things (.inputrc, set bind-tty-special-chars off, bind command in .bashrc) but nothing seems to work; I never manage to receive something with this combination of keys.

我设法绑定了其他非标准快捷键,例如 Ctrl-<left-arrow>.

I've managed to bind other non standards shortcuts like Ctrl-<left-arrow>.

推荐答案

Control-Comma 未映射到系统键盘映射中的控制字符.因此,它仅作为逗号发送到应用程序.终端然后将此逗号发送到 Emacs 接收它的 tty.如果您希望 Control-Comma 映射到 Emacs 可以与普通逗号区分开的控制字符或其他序列,则必须更改系统键盘映射.这样做留给读者作为练习.

Control-Comma does not map to a control character in the system keyboard map. Therefore, it is sent to applications as just a comma. Terminal then sends this comma to the tty, where Emacs receives it. If you want Control-Comma to map to a control character or other sequence that Emacs can distinguish from a normal comma, you'll have to alter the system keyboard map. Doing so is left as an exercise for the reader.

这篇关于Control + , 在 Terminal.app 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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