readline

I made a crappy little abstraction on top of readline to make things simpler for myself. Someone might find it useful.

  1. #include "egg-line.h"
  2. // ...
  3. EggLine *line = egg_line_new ();
  4. egg_line_set_prompt (line, "Linux-Router> ");
  5. egg_line_set_entries (line, completion_tree);
  6. egg_line_run (line);
  7. // ...
  8.  

Code: http://github.com/chergert/egg-line/
Example: http://github.com/chergert/egg-line/blob/master/main.c