puzzlebox
Loading...
Searching...
No Matches
rl.h
1#pragma once
2
11#define COLOR_OFF "\x1b[0m"
13#define COLOR_BOLD "\x1b[1m"
14
16#define CLI_PROMPT "(" COLOR_BOLD "pbc" COLOR_OFF ") "
17
19int cli_main();
20
29void rl_printf(const char * fmt, ...);
31void _rl_printf_start();
33void _rl_printf_stop();
34
46int rl_word(const char * line, int cursor);
55char ** rl_complete_list(const char * word, const char * options[]);
56
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.