juliaterminal-color

How to enable color when using cmd or linux terminal on a file?


How do I enable color in Julia when I am not using the REPL? When I try and run my Julia script on the Linux terminal it doesn't show colors.

Also another quick question. What's the best way to run a Julia script within another script? Right now, I just do include("file.jl") and add the arguments in the ARGS array.


Solution

  • Fixed it by putting the following line at the top of my script:

    Base.eval(:(have_color = true))