Emacs 中的退格键有效,但不会更新 term 和 ansi-term 中的显示(Emacs 23、cygwin)
在 Mx term
中,我输入 ab
,按退格键,然后 ab_
可见(_ 是空格)。按 Enter 告诉没有这样的命令 a
,因此删除有效,但终端未正确更新。对于 home
和 end
按钮也是如此。
我使用 dos 提示符或 mintty 从 cygwin 启动 Emacs,效果相同。可能出什么问题了?
In M-x term
, I type ab
, press backspace, then ab_
is visible (_ is space). Hitting enter tells no such command a
, so the deletion has effect but the the terminal is not updated correctly. Likewise for home
and end
buttons.
I start Emacs from cygwin using dos prompt or mintty, same effect. What chould be wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我刚刚遇到了这个确切的问题,也是在 cygwin 中,而不是在任何适当的 Linux 中。
正如评论所建议的,术语似乎是关键。我的已经是
eterm-color
了。将其设置为 xterm 为我解决了这个问题。显然,如果 xterm 不适合您,还可以尝试其他值。
I have just had this exact problem, also in cygwin, rather than any proper Linux.
As suggested by the comments, the TERM seems the key. Mine was already
eterm-color
. Setting it to xterm fixed it for me.Obviously there are other values to try if xterm doesn't work for you.