Is it possible to set a console.log output from a custom module to display in a red colour, to allow me to locate it more easily? Cheers.
Yes, check this out : http://voidcanvas.com/make-console-log-output-colorful-and-stylish-in-browser-node/ (edit: I’m only referring the “native way” part)
I can never remember the codes for coloring the console and I'm used to using an npm package. The npm package colorette worked great for my needs with OSC. I first tried chalk but that wouldn't work with the console.log with OSC.
Another note is that running OSC from a bash script will sometimes mess up the encoding with colorette
. Here is a pic of the scramble.
Not confident about whether if it's OSC or how the npm packages are returning/logging the colors. I just wanted to share which npm library is working currently for me.
Cheers,
DMDComposer