interactive lua prompt in opengl application
- by anon
Okay, so when I run lua, I get something like:
lua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
>
Now, I want a prompt like this,
1) in a GUI application I've written.
My GUI application can provide functions like:
get_input_from_screen();
and write_this_crap_out_to_screen();
and more functions I can write as necessary
I also know how to embed a lua interpreter in my C++ code (short tutorial on the web)
What I don't know .. is how to connect the input/output of a lua interpreter with my GUI stuff.
Any help/links apreciated.
Thanks!