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

term.clear()

Started by TwitchBlade, 08 March 2014 - 03:01 AM
TwitchBlade #1
Posted 08 March 2014 - 04:01 AM
Im haveing and issue with term.clear() when i use it it sets the entire monitor to red every time ive tried everything i can think of and yes i am using a monitor as a peripheral and i tried wrapping it as an object as well as just using term.clear neither of which worked for me does anyone have any ideas as to whats going on
Lyqyd #2
Posted 08 March 2014 - 04:58 AM
You've set the background color to red before you clear it and you haven't changed it to a different color.
TwitchBlade #3
Posted 08 March 2014 - 02:38 PM
You've set the background color to red before you clear it and you haven't changed it to a different color.

does it default to red because i didnt change the default background color enless painutils.drawPixel() sets it
Lyqyd #4
Posted 08 March 2014 - 04:23 PM
Yes, using paintutils.drawPixel will set it. It sets the background color and draws a space character.
TwitchBlade #5
Posted 09 March 2014 - 02:10 AM
Yes, using paintutils.drawPixel will set it. It sets the background color and draws a space character.

thank you i did not know that it set the background color ive fixed it now :)/>