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

Term.clear & term.setCursorPos

Started by MegaShrimp, 13 July 2012 - 11:38 PM
MegaShrimp #1
Posted 14 July 2012 - 01:38 AM
Im having issues clearing my screen for the next message. For instance I have,

if string.lower(Action) == "read" then
term.clear()
term.setCursorPos(1,1)
print("Receiving")
end

Its just shows "=" errors. Can someone explain to me what it is I'm doing wrong?
MysticT #2
Posted 14 July 2012 - 01:51 AM
The code is fine, are you sure that's the same you use?
If it says something like "= expected", it might be that you forgot the brackets after a function call (most probably term.clear, happens a lot).