Emacs 中的退格键有效,但不会更新 term 和 ansi-term 中的显示(Emacs 23、cygwin)

发布于 2024-12-24 21:19:21 字数 244 浏览 2 评论 0原文

Mx term 中,我输入 ab,按退格键,然后 ab_ 可见(_ 是空格)。按 Enter 告诉没有这样的命令 a,因此删除有效,但终端未正确更新。对于 homeend 按钮也是如此。

我使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

讽刺将军 2024-12-31 21:19:21

我刚刚遇到了这个确切的问题,也是在 cygwin 中,而不是在任何适当的 Linux 中。

正如评论所建议的,术语似乎是关键。我的已经是eterm-color了。将其设置为 xterm 为我解决了这个问题。

export TERM=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.

export TERM=xterm

Obviously there are other values to try if xterm doesn't work for you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文