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

Clear

Started by togaboy531, 03 March 2012 - 12:33 AM
togaboy531 #1
Posted 03 March 2012 - 01:33 AM
I want to know how to use the clear function to clear the screen every time I call a certain program instead of just typing "clear"

As in, when i use THIS program, the screen clears then caries out what its supposed to.
MysticT #2
Posted 03 March 2012 - 01:39 AM
Just use:

term.clear()
term.setCursorPos(1, 1)
where you need to clear the screen.
togaboy531 #3
Posted 03 March 2012 - 02:07 AM
alright thanks! it helped a lot
FuzzyPurp #4
Posted 03 March 2012 - 03:07 AM
Yea the clear program just runs those two functions :unsure:/>/>