I'm fairly new to lua and I was doing the a tutorial. So when i had to use term.clear() I got an error: attempt to index global 'term' (a nil value). This happens every time I use a term API line even in the most simple codes and I can't seem to get it to work, so could anyone please help me with my problem?
For the ones interested a code like this doesn't work:
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
I'm fairly new to lua and I was doing the a tutorial. So when i had to use term.clear() I got an error: attempt to index global 'term' (a nil value). This happens every time I use a term API line even in the most simple codes and I can't seem to get it to work, so could anyone please help me with my problem?
For the ones interested a code like this doesn't work:
term.clear()
term.serCursor(1,1)
print ("Hello World")
Link to post
Share on other sites