Q:

Julia: print_with_color() in terminal

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?

A:

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.

