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

Term API Source?

Started by CastleMan2000, 11 September 2012 - 02:24 PM
CastleMan2000 #1
Posted 11 September 2012 - 04:24 PM
Hello. I am trying to program a game in lua with repl.it, as I currently do not have access to Computercraft. Could someone decompile the source code for the Term API in Computercraft or else suggest a way to manipulate the cursor? Thank you.
PixelToast #2
Posted 11 September 2012 - 04:44 PM
you cant manipulate the cursor with the term api, decompile it yourself if you want to modify it but you need permission to give it to anybody
CastleMan2000 #3
Posted 11 September 2012 - 04:49 PM
What? I just told you, I don't have any access to the mod right now. That means I can't download it, either. term.setCursorPos() is what I meant. Is there an equivilant thing for other lua environments?
PixelToast #4
Posted 11 September 2012 - 05:08 PM
no, term.setCursorPos uses java and you cant modify it from the lua environment
Cloudy #5
Posted 11 September 2012 - 05:26 PM
No, there isn't. It would be simple to code though - really the terminal is just (in Lua terms) lines of text in a table.
CastleMan2000 #6
Posted 11 September 2012 - 05:57 PM
Ok, thank you. I'll see if I can recreate it.
PixelToast #7
Posted 14 September 2012 - 09:50 PM
also i know some recording programs and frames has its own table to store each line