title: interactive lua prompt in opengl application
body: <p>Okay, so when I run lua, I get something like:</p>
  
  <pre><code>lua
  Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
  &gt; 
  </code></pre>
  
  <p>Now, I want a prompt like this,
  1) in a GUI application I've written.</p>
  
  <p>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</p>
  
  <p>I also know how to embed a lua interpreter in my C++ code (short tutorial on the web)</p>
  
  <p>What I don't know .. is how to connect the input/output of a lua interpreter with my GUI stuff.</p>
  
  <p>Any help/links apreciated.</p>
  
  <p>Thanks!</p>