Skip to the content.

Trice Tags and Color

Trice is usable without tags and color similar to printf also.

1. How to get

./ref/COLOR_output.PNG

1.1. Output options

./ref/ColorOptions.PNG

1.2. Check Alternatives

There are over 1000 possibilities:

./ref/ColorAlternatives.PNG

Only file ../internal/emitter/lineTransformerANSI.go needs to be changed and the trice tool needs to be rebuild afterwards: go install ./....

2. Color issues under Windows

Currently console colors are not enabled by default in Win10, so if you see no color but escape sequences on your powershell or cmd window, please refer to Windows console with ANSI colors handling or simply use a Linux like terminal under windows, like git-bash. One option is also to install Microsoft Windows Terminal (Preview) from inside the Microsoft store and to start the trice tool inside there. Unfortunately this can not be done automatically right now because of missing command line switches. Alacritty is one of other alternatives.