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"
    

Reply via email to