ConEmu/cygwin换行符不执行回车功能 [英] ConEmu/cygwin newlines don't perform carriage return functionality

查看:86
本文介绍了ConEmu/cygwin换行符不执行回车功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我升级了Cygwin,现在Bash表现得很奇怪.换行符并不总是将光标返回到屏幕的左侧,但有时它们会返回.这是我正在经历的事情:

I upgraded Cygwin and now Bash is acting weird. Newlines aren't always returning the cursor to the left side of the screen, but sometimes they do. Here is what I'm experiencing:

$ 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 = ,但行为没有差异.

I have TERM=xterm-color, and I've tried TERM=cygwin and just TERM= with no difference in behavior.

另一个奇怪的事情是,当我第一次打开文件或使用Ctrl-F向下翻页时,less命令会弄乱换行符,但是如果我一次向上翻页或向上或向下滚动一行,则格式为很好.

Another strange thing is that the less command will mess up the newlines when I first open a file, or page down with Ctrl-F, but if I page up or scroll up or down one line at a time, the formatting is fine.

ls -l正常工作.猫工作正常.

ls -l works fine. cat works fine.

推荐答案

最新的Cygwin版本已解决此问题.

Latest Cygwin release fixes this.

这篇关于ConEmu/cygwin换行符不执行回车功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆