本文介绍了如何在Windows7 64位命令终端中识别ANSI彩色转义码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经尝试过Ansicon,但仍无法在Windows 7 64位的CMD.EXE命令提示符下获得ansi转义序列以被识别和解释.有人能使用此OS正常工作并获得彩色控制台吗?
I have tried Ansicon and I still cannot get ansi escape sequences to become recognized and interpreted in my CMD.EXE command prompt on Windows 7 64 bit. Has anyone been able to work this correctly and get a colorized console with this OS?
推荐答案
我今天遇到了同样的问题,并找到了解决方法.
I ran into the same problem today, and found a workaround.
命令行实用程序 Windows ANSI颜色检测ANSI颜色代码并设置相应的控制台颜色.
The commandline utility Windows ANSI Color detects ANSI color codes and sets the corresponding console color.
示例:
myapp.bat | wac
其中wac是Windows ANSI颜色实用程序
where wac is the Windows ANSI color utility
这篇关于如何在Windows7 64位命令终端中识别ANSI彩色转义码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!