An extension to o2scl::cli which uses readline.
This header-only class requires the GNU readline
library for use, but is not referenced by code at the moment to make the library usable without readline
.
Public Functions
-
inline cli_readline(std::string fname = "", size_t max_size = 100)
-
inline ~cli_readline()
-
inline void set_histfile(std::string fname)
Set history file.
-
inline virtual char *cli_gets(const char *c)
Function to get a string from the user.
Protected Attributes
-
char *line_read
Buffer for readline.
-
std::string histfile
String containing filename.
-
size_t msize
Maximum history file size.