命令行格式错误

Command line is formatting lines wrong

最近我决定安装 git-up (https://github.com/msiemens/PyGitUp)

但是,该程序在显示文本时似乎有一些奇怪的行为。它给几乎每个字符一个前缀:<--[0m<--1m。我在其他 bash 程序中也看到过这种行为。

我在某处读到这与颜色格式有关,但是我找不到解决这个问题的方法。

mention here and in this blog post, you can try and install adoxa/ansicon.

安装:ansicon -i

它应该允许 Windows 控制台解释正确的 ANSI 颜色。