Windows7 64位命令终端中如何识别ansi颜色转义码

发布于 2024-08-22 22:10:30 字数 104 浏览 3 评论 0原文

我已经尝试过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

叹沉浮 2024-08-29 22:10:30

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

命令行实用程序 Windows ANSI Color 检测 ANSI 颜色代码并设置相应的控制台颜色。

示例:

myapp.bat | wac

其中 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:

myapp.bat | wac

where wac is the Windows ANSI color utility

可是我不能没有你 2024-08-29 22:10:30

ANSICON (source) 似乎对我来说工作得很好...

  • 将 ansicon 放在您打算保存的地方...
  • 运行 ANSICON -I
  • 关闭终端
  • 打开一个新终端...

ANSICON (source) seems to work fine for me...

  • Put ansicon somewhere you intend to keep it...
  • Run ANSICON -I
  • Close the terminal
  • Open a new one...
魂归处 2024-08-29 22:10:30

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)

樱&纷飞 2024-08-29 22:10:30

我已经玩过很多次了,对我来说最好的控制台是 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文