If my script run_this.jl
contains the following, single line of code:
print_with_color(:green, "Hello")
and I run the script in the terminal as julia run_this.jl
, it does not print in color. Is there a way to make this function work when I run a julia script in the terminal?
You can use the color option when calling your julia script. E.g.
julia --color=yes run_this.jl
That works for me on mac osx and linux. Not sure about windows.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With