[Lua IrrConsole luabind] Redirecting Lua output

Started by
-1 comments, last by GreyHound 15 years, 11 months ago
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.

This topic is closed to new replies.

Advertisement