11 #include <cmdline_rdline.h>
12 #include <cmdline_parse.h>
27 cmdline_parse_ctx_t *ctx;
29 char prompt[RDLINE_PROMPT_SIZE];
30 struct termios oldterm;
33 struct cmdline *cmdline_new(cmdline_parse_ctx_t *ctx,
const char *prompt,
int s_in,
int s_out);
34 void cmdline_set_prompt(
struct cmdline *cl,
const char *prompt);
35 void cmdline_free(
struct cmdline *cl);
36 void cmdline_printf(
const struct cmdline *cl,
const char *fmt, ...)
37 __attribute__((format(printf,2,3)));
38 int cmdline_in(struct cmdline *cl, const
char *buf,
int size);
39 int cmdline_write_char(struct rdline *rdl,
char c);
55 void cmdline_interact(struct cmdline *cl);
56 void cmdline_quit(struct cmdline *cl);