Jump to content




Creating a (valid) term redirect target


  • You cannot reply to this topic
2 replies to this topic

#1 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 27 September 2014 - 04: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.

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 27 September 2014 - 04: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.

#3 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 27 September 2014 - 01:48 PM

Note that you do not need to implement term.redirect, term.restore or term.native.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users