65 #include <cmdline_rdline.h>
80 cmdline_parse_ctx_t *ctx;
82 char prompt[RDLINE_PROMPT_SIZE];
83 struct termios oldterm;
86 struct cmdline *cmdline_new(cmdline_parse_ctx_t *ctx,
const char *prompt,
int s_in,
int s_out);
87 void cmdline_set_prompt(
struct cmdline *cl,
const char *prompt);
88 void cmdline_free(
struct cmdline *cl);
89 void cmdline_printf(
const struct cmdline *cl,
const char *fmt, ...)
90 __attribute__((format(printf,2,3)));
91 int cmdline_in(struct cmdline *cl, const
char *buf,
int size);
92 int cmdline_write_char(struct rdline *rdl,
char c);
108 void cmdline_interact(struct cmdline *cl);
109 void cmdline_quit(struct cmdline *cl);