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

uhm... coloring text?

Started by CocoPC, 28 July 2015 - 09:01 PM
CocoPC #1
Posted 28 July 2015 - 11:01 PM
Hello guys, how can I make to change characters color like:
a = black
0 = pink
etc..
and I have a code like:

print("+---------------+")
print("|This is a box  |")
print("+---------------+")
and I want to +,- and | to be black and text white( i have a code term.setBackgroundColor(colors.blue)for background)
I'm working on a "operating system" so I need help
-sorry for bad english :(/> cheers.
KingofGamesYami #2
Posted 29 July 2015 - 12:17 AM
term.setTextColor changes the text color. It works exactly like term.setBackgroundColor, but for text.