Skip to main content
1 of 2
Sean Lynch
  • 1.1k
  • 5
  • 16

wolframscript - How to print in color

I want to print to the console in color from a wolframscript. I tried just using a Style:

Print[Style["This is a red string", Red]] 

This works fine in a notebook but, not surprisingly, doesn't work from a wolframscript.

How can this be accomplished? Also, is there any issues with terminal compatibility?

Sean Lynch
  • 1.1k
  • 5
  • 16