So my friend and I are trying to write a program for ComputerCraft (Minecraft Mod), which uses Lua as a programming language. I haven't done any Lua before and he's played around a bit with it. Basically, we're trying to clear a line of text with m.clear(), but I think that it may not know what m, is, even though I tried to define it.
Sorry if the question is poorly worded, here's the code:
m = peripheral.wrap("right")
m.write("Shutting down.")
m.clear()
sleep(.1)
m.setcursorpos(1,1)
print("Shutting Down..")
And the function of the rest of the code (which is just more of the same) I won't post, because the function of the program is to make it so that it'll add a . each time, if you understand what I mean. But, that's not the important part. :)
Notes:
I don't actually know what peripheral.wrap("right") means, it was taken from the ComputerCraft forums from another person's code (he also wanted to clear the screen).
m.write("...")? If that's it, the API isn't returning an object when you call peripheral.wrap(), and you'll have to investigate to see why.