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

Creating a (valid) term redirect target

Started by KingofGamesYami, 27 September 2014 - 03:31 AM
KingofGamesYami #1
Posted 27 September 2014 - 05:31 AM
How would one go about creating an object you can redirect the terminal output to? I would like it to work with all versions of CC, if possible. Would you simply have a table with the functions in it? I'm pretty sure there's something more than that though.
Lyqyd #2
Posted 27 September 2014 - 05:40 AM
That's really all there is to it, actually. Have a read through my framebuffer API when you have a moment. You'll note that calling framebuffer.new would cause the API to create a new table, populate it with the term functions, and return that table.
MKlegoman357 #3
Posted 27 September 2014 - 02:48 PM
Note that you do not need to implement term.redirect, term.restore or term.native.