|
rlmm::basic_readline< Lock > Struct Template Reference |
Variables and functions | |
int | variable (const std::string &var, const std::string &val) |
void | list_variables (bool inputrc=false) |
static command_t | last_command () |
Public Types | |
enum | edit_mode { vi, emacs } |
enum | state_bit { none, initializing, initialized, terminal_preped, command, meta, dispatching, more, incremental, non_incremental, search, numeric_arg, macro_input, macro_define, overwrite, completing, signal, undo, pending, finish } |
Public Member Functions | |
virtual | ~basic_readline () |
const std::string & | name () const |
void | name (const std::string &name) |
Initialise | |
int | read_init_file (const std::string &file=std::string()) |
bool | parse (const std::string &line) |
Reading lines | |
bool | read (const std::string &prompt, std::string &line) |
bool | read (const std::string &prompt, char *&line) |
Status information | |
int | state () const |
void | state (int status) |
int | state (state_bit bit, bool on=true) |
bool | test_state (state_bit bit) const |
Prompting | |
const std::string & | prompt () const |
void | prompt (const std::string &prompt) |
void | save_prompt () |
void | restore_prompt () |
void | expand_prompt (const std::string &prompt) |
void | already_prompted (bool already=true) |
bool | already_prompted () const |
Editing mode | |
edit_mode | editing_mode () const |
void | editing_mode (edit_mode mode=emacs) |
Miscellaneous parameters | |
bool | clear_empty_lines () const |
void | clear_empty_lines (bool clear=true) |
int | max_read () const |
void | max_read (int n) |
void | parenthesis_timeout (int us) |
Miscellaneous operations | |
void | done () |
int | parenthesis_blink_timeout () const |
void | parenthesis_blink_timeout (int us) |
std::string | version () |
bool | gnu_readline () |
Hooks | |
virtual int | input_hook () |
virtual int | event_hook () |
virtual int | startup_hook () |
Protected Member Functions | |
basic_readline () | |
basic_readline (const basic_readline &o) | |
basic_readline & | operator= (const basic_readline &o) |
Protected Attributes | |
std::string | _name |
int | _parenthesis_blink_timeout |
Friends | |
class | singleton |
|
EditingMode. Enum of possible editing modes |
|
|
Create an readline.
|
|
Constructor.
|
|
DTOR.
|
|
Does application control the prompt?
|
|
Set if application does the prompting. If the application is in charge of doing the prompting itself, it should tell readline so by calling this member function.
|
|
Set wether or not to clear empty lines.
|
|
See if empty lines are dicarded.
|
|
Force readline to return immediately.
|
|
Set the editing mode.
|
|
Get the editing mode.
|
|
Event Hook. member function to be run after event timeout. Users can overload this function to do some period checking.
|
|
Expand the prompt to new prompt.
|
|
Test if this GNU readline (it is, trust me).
|
|
Input hook. member function to be run after input timeout. Users can overload this function to do some period checking.
|
|
Return pointer to last command executed.
|
|
Show a list of currently defined variables.
|
|
Set the limit on reads before returning.
|
|
Get the limit on reads before returning .
|
|
Set the unique appliation name.
|
|
Get the unique application name.
|
|
Constructor.
|
|
Set the parenthis blink timeout in .
|
|
|
|
Set the timeout (micro seconds) before showing matching parenthesis.
|
|
Parse a line and do bindings accordingly.
|
|
Set the prompt.
|
|
Get the current prompt.
|
|
Read one line of input User must free() the returned line read.
|
|
Read one line of input.
|
|
Read settings from a file.
|
|
Restore the prompt previously saved.
|
|
Save away the prompt.
|
|
Startup hook. member function to be run after event timeout. Users can overload this function to do some period checking.
|
|
Set a bit in the status of readline.
|
|
Set the status of readline.
|
|
Get the status of readline. This is an bitwise or of the bits in the state enum
|
|
Test a bit in the status.
|
|
Set a variable.
|
|
Get the version of readline (C) library.
|
|
Base class is a friend.
|
|
Name of the readline application.
|
|
parenthesis blink timeout in
|