How can colored terminal output be disabled for sbt/play?

后端 未结 5 1260
误落风尘
误落风尘 2020-12-13 17:30

I would like to disable the color escape codes logged from sbt/play. Is this possible? And if it is, is there a way to do it without making changes to the config - i.e. via

5条回答
  •  攒了一身酷
    2020-12-13 17:52

    I was able to get colored output from SBT in Cygwin by adding:

    -Djline.terminal=jline.UnixTerminal
    

    Additionally I figured out that I also needed to add the following line to Cygwin.bat:

    set CYGWIN=tty ntsec
    

    After that is added SBT gives very nice colored output. Additionally I would recommend looking into Console2 as it can hook through Cygwin, but provides a much better interface in my opinion:

    http://sourceforge.net/projects/console/

提交回复
热议问题