Windows 可能需要额外的解决方案来显示颜色
输出使用 ANSI 转义代码 来显示彩色文本。Windows 系统(shell)通常根本不解释这些代码。
如果您在 Windows 上并且在输出中看到 ANSI 转义代码(类似于 `[1m [31m`),并且您的文本没有以不同的颜色显示,则您可能需要安装一个实用程序,以便您的 Windows shell 正确解释这些代码并显示颜色。以下是一些流行的解决方案
* [ANSICON](https://github.com/adoxa/ansicon): ANSICON runs 'on top of' cmd or powershell. This is a very
popular solution. You can set it up so that it's always used whenever
you use cmd or powershell, or use it only at specific times.
* Alternatives to cmd.exe or powershell: [ConEmu](http://conemu.github.io/), [Console2](http://sourceforge.net/projects/console/),
[ConsoleZ](https://github.com/cbucher/console)
* Unix-like shells and utilities: [cygwin](https://www.cygwin.com/), [babun](http://babun.github.io/index.html),
[MinGW](http://www.mingw.org/) (Minimalist GNU for Windows)
要了解更多信息,请搜索有关这些解决方案的信息。