如何在 Windows7 64 位命令终端中识别 ansi 颜色转义码 [英] How to recognize ansi color escape codes in Windows7 64 bit command terminal

查看:39
本文介绍了如何在 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?

推荐答案

我今天遇到了同样的问题,并找到了解决方法.

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 颜色转义码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆