Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在运行 rspec 时让颜色显示在我的 Windows 7 x64 机器上。我已经尝试过 console2 和 ansicon 但这会使 Ruby 崩溃。我已经安装了 ConEmu 并且 Ruby 再次运行,但我没有为 rspec 获得任何颜色。同样在我希望看到颜色的行中,它们前面是 [31m 或 [36m 之类的文本(cmd.exe 也会出现这种情况)。
感谢您的帮助沙龙
要在 ConEmu 中启用 ANSI X3.64 处理,您必须在“功能”页面上启用两个选项:
事实上,如果您只需要在根进程中进行 ANSI 处理(例如 cmd.exe),则无需启用“Inject ConEmuHk”。但在大多数情况下,当您从 root shell 运行 smth(使用 ANSI)时 - 需要“注入”。
ATM,推荐最新的 alpha 版本,当前稳定版本存在一些滞后。