Color Codes in Io

Is there a special trick to get Io to switch the colors of the terminal text? In Python, I can run

print "\033[0;34;40mHi!"

and get the blue "Hello!".

In io

"\033[0;34;40mHi!" println

doesn't seem to have an effect.

+4
source share
1 answer

Unfortunately, it seems that Io sequences (strings) only convert single (alpha) character escape codes, such as \ n or \ t.

So (for now) this is probably the only workaround:

 27 asCharacter .. "[0;34;40mHi!" println 
+3
source

All Articles