如何确定终端是否为 Windows 终端。
我想在 Windows 终端中启用 ANSI 输出并在 CMD 中禁用。
是否可以通过环境变量来判断?喜欢:</p>
ANSICON
在https://github.com/adoxa/ansiconConEmuANSI
在https://conemu.github.io/en/ConEmuEnvironment.html
最佳做法是什么?
如何确定终端是否为 Windows 终端。
我想在 Windows 终端中启用 ANSI 输出并在 CMD 中禁用。
是否可以通过环境变量来判断?喜欢:</p>
ANSICON
在https://github.com/adoxa/ansiconConEmuANSI
在https://conemu.github.io/en/ConEmuEnvironment.html最佳做法是什么?