3057 posts
Location
United States of America
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.
8543 posts
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.
1140 posts
Location
Kaunas, Lithuania
Posted 27 September 2014 - 02:48 PM
Note that you do not need to implement term.redirect, term.restore or term.native.