11

I'm trying to use the new iTerm app on my Snow Leopard Mac, but my Ctrl seems to be completely dead (as in non-responsive, as in nothing happens when I type Ctrl+a except for an outputed 'a') and I haven't found anything useful while googling. The closest match was this thread here on stackoverflow, but everything in Terminal.app works as it should.

And, even more strange - I can Ctrl+z myself out of applications, but I can't save files in Emacs (C-x C-s) or any other keyboard shortcuts that uses a Ctrl shortcut. And it's not local, since Ctrl is as broken on my iMac as it is on other unix computers I've sshed onto with iTerm. I've tried both in bash and zsh.

I've tried to remove all files concerning iTerm.app in my ~/Library/Application Support, and I've tried the very latest version (currently 13 h old) of iTerm I could lay my hands on, but to no avail.

Any ideas?

4

2 回答 2

1

这似乎是一个 iTerm 错误。

您可以通过在配置文件设置中创建键映射来解决它。添加一个映射^x以便它发送0x18(这是 ctrl+x 的编码形式)。

截屏

于 2014-09-05T22:11:28.230 回答
0

我建议查看这篇文章以查看您的偏好设置中是否启用了 ctrl 键

https://apple.stackexchange.com/questions/52041/how-to-press-control-key-on-mac

您是否尝试按照 iTerm wiki 中的说明为此终端模拟器配置键绑定:

http://code.google.com/p/iterm2/wiki/Keybindings

最后,你尝试了吗set -o emacsset -o vi

如果它有效,请将其设置在您的 ~/.bashrc 中以在登录时运行它。

于 2012-07-30T12:59:22.570 回答