Windows7 64位命令终端中如何识别ansi颜色转义码
我已经尝试过 Ansicon,但仍然无法在 Windows 7 64 位上的 CMD.EXE 命令提示符中识别和解释 ansi 转义序列。有没有人能够正确地工作并获得带有此操作系统的彩色控制台?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我今天遇到了同样的问题,并找到了解决方法。
命令行实用程序 Windows ANSI Color 检测 ANSI 颜色代码并设置相应的控制台颜色。
示例:
其中 wac 是 Windows ANSI 颜色实用程序
I ran into the same problem today, and found a workaround.
The commandline utility Windows ANSI Color detects ANSI color codes and sets the corresponding console color.
Example:
where wac is the Windows ANSI color utility
ANSICON (source) 似乎对我来说工作得很好...
ANSICON -I
ANSICON (source) seems to work fine for me...
ANSICON -I
Ansicon 使用 dll 注入来在 cmd.exe 中启用 ansi 颜色,该功能在标准用户权限下被禁用。
尝试使用“以管理员身份运行”启动 ansicon(右键单击)
Ansicon use dll injection in order to enable ansi color in cmd.exe, which is disabled with the standard user privileges.
Try launching ansicon with "run as administrator" (right click)
我已经玩过很多次了,对我来说最好的控制台是 Windows 上的 FarManager。 http://www.farmanager.com/
这是一个文件管理器,但使用 CTRL+O 您将获得控制台,非常方便,完全支持 ANSI、自动完成等。
I've played a lot with this, and the best console for me is FarManager on Windows. http://www.farmanager.com/
It's a file manager, but with CTRL+O you will get the console, and very handy with full support of ANSI, autocomplete, etc.