Color output in Sublime Text 2 console?

Is there a way to output coloful text to an elevated text console? I tried this:

"\033[0;32mTest\033[0m" 

and the console displays something similar to this:

 ESC[0;32mTestESC[0m" 
+4
source share
1 answer

Unfortunately, the Sublime Text console is essentially monochrome. Its foreground and background color can be changed using the Packages/Theme - Default/Widgets.stTheme file Packages/Theme - Default/Widgets.stTheme (or the equivalent of your theme), but you cannot colorize the output using terminal control codes, for example, you are using.

+5
source

Source: https://habr.com/ru/post/1502484/


All Articles