11#define COLOR_OFF "\x1b[0m"
13#define COLOR_BOLD "\x1b[1m"
16#define CLI_PROMPT "(" COLOR_BOLD "pbc" COLOR_OFF ") "
31void _rl_printf_start();
33void _rl_printf_stop();
46int rl_word(
const char * line,
int cursor);
void rl_printf(const char *fmt,...)
Print format string to stdout without disturbing the readline prompt.
Definition rl.cpp:38
int rl_word(const char *line, int cursor)
Get the index of the word currently under the cursor.
Definition rl.cpp:119
int cli_main()
CLI entrypoint.
Definition rl.cpp:101
char ** rl_complete_list(const char *word, const char *options[])
Create a completion suggestion string array for readline.