• Advertisement
Sign in to follow this  

[Lua IrrConsole luabind] Redirecting Lua output

This topic is 3562 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone, i modified IrrConsole to lua_dostring(state, str) every entry. That works great. I can easily use the console to enter lua code that will actually execute. Now i wonder how i could get lua to do it's output on the console instead of stdout. I've looked into the lua src a bit and i think i can overwrite the output and somehow reach my goals. Unfortunately i haven't piped any output yet and i'm not really sure what i should do to get that done. Therefore i ask if anyone could give me advice how to redirect that output so i can get my hands on output and work with it, e.g. output it on the ingame console. Mayb someone has a project in mind which could be a nice reference to look at? Would be so great if anyone knew something that helps me out. I appreciate anything leading me to understand how to approach this.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement