无法在Terminal.app OSX上使用Ctrl + A和Ctrl + E(bash键绑定) [英] Can't use Ctrl+A and Ctrl+E (bash keybindings) on Terminal.app OSX

查看:88
本文介绍了无法在Terminal.app OSX上使用Ctrl + A和Ctrl + E(bash键绑定)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以出于某种奇怪的原因,我不能在Terminal.app的bash上使用^ A和^ E,但是可以使用^ C,^ R,^ Y,^ L和其他各种键绑定.

So for some odd reason, i can't use ^A and ^E on bash in Terminal.app, i can however, use ^C, ^R, ^Y, ^L and all sort of other key bindings.

绑定-p显示 "\ C-a":行首 "\ C-e":行尾

bind -p shows "\C-a": beginning-of-line "\C-e": end-of-line

所以我认为其他原因阻碍了这些键绑定... 任何想法,我怎么可以解决?或至少知道其他应用是否正在使用^ A和^ E?

so i think something else is obstructing these key bindings... any idea how i can fix that? or at least know if ^A and ^E are being taken by some other app?

高度赞赏

推荐答案

我必须注意以下几点: Ctrl + Alt + A和Ctrl + Alt + E似乎可以完成Ctrl + A和Ctrl + E的功能.

I must note the following: Ctrl+Alt+A and Ctrl+Alt+E seem to do what Ctrl+A and Ctrl+E should do.

因此,当我在终端上运行读取"时: Ctrl + Alt + A显示:^ A和Ctrl + Alt + E显示:^ E ... 请注意,Ctrl + R显示:^ R和Ctrl + Y显示^ Y很好(这些只是一些示例).

So when i run "read" on my terminal: Ctrl+Alt+A shows: ^A and Ctrl+Alt+E shows: ^E ... note that Ctrl+R shows: ^R and Ctrl+Y shows ^Y just fine (these are just some examples).

我检查了系统偏好设置,找不到分配.

i checked System Preferences, couldn't find the assignments.

这篇关于无法在Terminal.app OSX上使用Ctrl + A和Ctrl + E(bash键绑定)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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