This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
elblorenz32's profile picture

coloured strings in Computercraft

Started by elblorenz32, 01 January 2018 - 02:54 PM
elblorenz32 #1
Posted 01 January 2018 - 03:54 PM
Hi i had started to program with Computercraft (File is "ComputerCraft1.75.jar")
and now i wanted to print colored text (eg. "green" instead of "green") but i don't know how i can paint the text.
Bomb Bloke #2
Posted 01 January 2018 - 11:00 PM
You're after the functions in the term API, and the values in the colours API. For eg:

term.setTextColour( colours.green )
term.write("this is green")