Cscript. How to make colorful text

I am trying to get colorful text on the console using Cscript.

WScript.Echo('\033[31m' + 'Some Text' + '\033[0m');

      

This solution doesn't work. Is there a way to get multi-colored text on the console?

+3


source to share


1 answer


Changing the text / foreground color is not supported.

You can change the background color.



  te.SetRGBEntry(9, 16711680); 

      

will change it to blue.

0


source







All Articles