ConsoleZ maven颜色输出 [英] ConsoleZ maven color output

查看:49
本文介绍了ConsoleZ maven颜色输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近的Maven版本在终端上进行彩色输出.Git Bash显示正确的颜色,但配置为使用git bash的 ConsoleZ 却没有.它仅输出原始颜色代码.有谁知道如何解决

Recent maven versions do colored output in terminal. Git Bash shows correct colors, but ConsoleZ configured to use git bash does not. It just outputs raw color codes. Does anyone know how to fix it

$ mvn clean
[←[1;34mINFO←[m] Scanning for projects...
[←[1;34mINFO←[m]

推荐答案

在Window10中,在Console2和ConsoleZ中都使用Git Bash遇到了相同的问题(尝试使用不同的配置,但不起作用).经过大量尝试,我决定尝试 ConEmu .太神奇了,它运作完美.我可以配置所有喜欢的行为,例如在ConsoleX中,最重要的是 maven现在可以像在本机git bash中一样正确显示.

I met the same issue in Window10 with Git Bash in both Console2 and ConsoleZ (try different configuration but it does not work). After a lot of attempt, I decided to give a try to ConEmu. Amazing, it works perfect. I can configure all my prefer behaviors like in ConsoleX, AND the bottom line is maven now can display correctly like in native git bash.

我认为您可以尝试使用ConEmu.这是GitBash的配置(与ConsoleX完全相同)

I think you can give a try to ConEmu. This is the configuration for GitBash (it's quite same as ConsoleX)

设置->启动->添加新(+)

Settings -> Startup -> Add new (+)

任务参数

/icon"C:\ Program Files \ Git \ mingw64 \ share \ git \ git-for-windows.ico"/dir E:\

/icon "C:\Program Files\Git\mingw64\share\git\git-for-windows.ico" /dir E:\

命令

"C:\ Program Files \ Git \ bin \ sh.exe" --login -i

"C:\Program Files\Git\bin\sh.exe" --login -i

记住要更新您的路径

希望这会有所帮助.

这篇关于ConsoleZ maven颜色输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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