【发布时间】:2020-01-30 13:33:15
【问题描述】:
我升级了 Cygwin,现在 Bash 表现得很奇怪。换行符并不总是将光标返回到屏幕的左侧,但有时会。这是我正在经历的:
$ echo hello
hello
Thu Jan 30 08:31:33 :~
$ python3
Python 3.6.9 (default, Jul 21 2019, 14:33:59)
[GCC 7.4.0] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 56+23
79
>>> 2+3
5
>>> exit()
Thu Jan 30 08:31:46 :~
$
我有TERM=xterm-color,我试过TERM=cygwin 和只是TERM=,在行为上没有区别。
另一个奇怪的事情是,当我第一次打开文件时,less 命令会弄乱换行符,或者使用 Ctrl-F 向下翻页,但是如果我一次向上翻页或向上或向下滚动一行,则格式为很好。
ls -l 工作正常。猫工作正常。
【问题讨论】:
-
你好@matt,你找到解决办法了吗?
-
是的,我把它作为答案发布在下面。
标签: terminal cygwin conemu mintty