控制+,在Terminal.app [英] Control + , in Terminal.app

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

问题描述

我用快捷键 C - ,使用Emacs的窗口版本

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.

我试过很多东西( .inputrc文件设置绑定-TTY的特殊字符关闭,<在code>绑定命令的.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 - &LT;左箭头方式&gt;

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

推荐答案

控制-逗号不映射到系统中的键盘映射控制字符。因此,它被发送到应用只是一个逗号。终端然后把这个逗号的TTY,在Emacs的接收它。如果你想控制逗号键映射到一个控制字符或其他序列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.

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

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