Go to the documentation of this file.
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=
"",
size_t max_size=100) {
72 stifle_history(((
int)
msize));
115 #ifndef DOXYGEN_NO_O2NS
An extension to o2scl::cli which uses readline.
The main O<span style='position: relative; top: 0.3em; font-size: 0.8em'>2</span>scl O$_2$scl names...
std::string histfile
String containing filename.
Configurable command-line interface.
void set_histfile(std::string fname)
Set history file.
virtual char * cli_gets(const char *c)
Function to get a string from the user.
char * line_read
Buffer for readline.
size_t msize
Maximum history file size.
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).