26 #ifndef O2SCL_CLI_READLINE_H
27 #define O2SCL_CLI_READLINE_H
29 #include <readline/readline.h>
30 #include <readline/history.h>
32 #include <o2scl/cli.h>
34 #ifndef DOXYGEN_NO_O2NS
60 cli_readline(std::string fname=
".cli_hist",
size_t max_size=100) {
69 stifle_history(((
int)
msize));
101 #ifndef DOXYGEN_NO_O2NS
An extension to o2scl::cli which uses readline.
Configurable command-line interface.
std::string histfile
String containing filename.
char * line_read
Buffer for readline.
virtual char * cli_gets(const char *c)
Function to get a string from the user.
size_t msize
Maximum history file size.