I made a crappy little abstraction on top of readline to make things simpler for myself. Someone might find it useful.
#include "egg-line.h"// … EggLine *line = egg_line_new (); egg_line_set_prompt (line, "Linux-Router> "); egg_line_set_entries (line, completion_tree); egg_line_run (line);// …
Code: http://github.com/chergert/egg-line/
Example: http://github.com/chergert/egg-line/blob/master/main.c
-
Home > Archives for November, 2009
