title: Simple interactive prompt in C++
body: <p>I work on an application that usually runs unattended. Now I need to add to it something like an interactive prompt. In the interactive mode the operator will be able to give simple commands to the application - nothing fancy, simple commands like <em>start</em> and <em>stop</em>. Parametrized commands (e.g. <em>repeat 10</em>) and commands history could be nice too.</p>
  
  <p>Do you know, by chance, any library that helps with such tasks. I've been thinking about something that works like <code>boost::program_options</code> or <code>gflags</code> but for an interactive prompt and not for command line parameters. Any ideas?</p>
  
  <p>Thanks</p>