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

[lua] term.setBackgroundColor(color)

Started by FUCKCOMPUTERCRAFT!"£, 06 January 2013 - 01:49 PM
FUCKCOMPUTERCRAFT!"£ #1
Posted 06 January 2013 - 02:49 PM
So i was making a new program i tried term.setBackgroundColor(colors.blue) and it doesn't seem to work, am i doing something wrong?
Lyqyd #2
Posted 06 January 2013 - 04:43 PM
We'd have to see the code. The function works fine.
ChaddJackson12 #3
Posted 06 January 2013 - 05:17 PM
I think that you may have to write text to the screen to change the background color. I don't think it changes without that :P/>
remiX #4
Posted 06 January 2013 - 11:21 PM
I think that you may have to write text to the screen to change the background color. I don't think it changes without that :P/>

Yeah changing it does nothing until you write something.

Or if you want to change the whole scroll to a colour do this:

term.setBackgroundColour(colours.blue)
term.clear()