Is there an easy way to output color text to the terminal in the nimble file?
I tried using standard terminal codes but that didn't work.
I then found and used the Terminal module. That works in a nim file, see the example below, however you cannot import Terminal in a nimble file (or nimscript) without errors.
import Terminal
setForegroundColor(fgBlue)
stdout.write "[Blue Text]"
resetAttributes()
echo " normal colored text"
Thanks. My problem was using the wrong escape code.
Here are some examples of showing [Suite] in bold blue.
Python: python -c "print '033[1;34m[Suite]033[0m'"
Nim: echo "e[1;34m[Suite]e[00mn"
Bash: printf "e[1;34m[Suite]e[00mn"