Colors in Terminal
Posted: Sun May 29, 2011 3:41 pm
Hi guys,
I'm developing a console application which makes use of VT-100 compatible terminals. Usually, to produce text color, I use the escaped phrase `\\033$COLOR_CODE`. For example, to output the world "Hello world" in red, I use
In newLISP, I tried to do the same thing with
But neither works. Does anyone know how to produce colors in terminal with newLISP?
I'm developing a console application which makes use of VT-100 compatible terminals. Usually, to produce text color, I use the escaped phrase `\\033$COLOR_CODE`. For example, to output the world "Hello world" in red, I use
Code: Select all
echo "\\033[41mHello world!"
Code: Select all
(println "\\\\033[41mHello world!")
(println {\\033[41mHello world!})