简体   繁体   English

Emacs中的Backspace起作用,但不会更新术语和ansi术语中的显示(Emacs 23,cygwin)

[英]Backspace in Emacs has effect but does not update display in term and ansi-term (Emacs 23, cygwin)

In Mx term , I type ab , press backspace, then ab_ is visible (_ is space). Mx term ,我键入ab ,按退格键,然后ab_是可见的(_是空格)。 Hitting enter tells no such command a , so the deletion has effect but the the terminal is not updated correctly. 击中enter不会告诉任何这样的命令a ,因此删除有效,但是终端未正确更新。 Likewise for home and end buttons. 同样适用于homeend按钮。

I start Emacs from cygwin using dos prompt or mintty, same effect. 我使用DOS提示或薄荷糖从cygwin启动Emacs,效果相同。 What chould be wrong? 有什么问题吗?

I have just had this exact problem, also in cygwin, rather than any proper Linux. 我在cygwin中遇到了这个确切的问题,而不是任何合适的Linux。

As suggested by the comments, the TERM seems the key. 正如评论所建议的那样,术语似乎是关键。 Mine was already eterm-color . 我的已经很eterm-color Setting it to xterm fixed it for me. 将其设置为xterm可以为我修复。

export TERM=xterm

Obviously there are other values to try if xterm doesn't work for you. 显然,如果xterm对您不起作用,还可以尝试其他值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM