This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
Term API Source?
Started by CastleMan2000, 11 September 2012 - 02:24 PMPosted 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.
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
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?
Posted 11 September 2012 - 05:08 PM
no, term.setCursorPos uses java and you cant modify it from the lua environment
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.
Posted 11 September 2012 - 05:57 PM
Ok, thank you. I'll see if I can recreate it.
Posted 14 September 2012 - 09:50 PM
also i know some recording programs and frames has its own table to store each line