The readline keymap wrapper. More...
#include <opentrep/ui/cmdline/SReadline.hpp>
Public Member Functions | |
| SKeymap (bool PrintableBound=false) | |
| Creates a new keymap. | |
| SKeymap (Keymap Pattern) | |
| Creates a new keymap which is a copy of Pattern. | |
| ~SKeymap () | |
| Frees the allocated keymap. | |
| void | Bind (int Key, KeyCallback Callback) |
| Binds the given key to a function. | |
| void | Unbind (int Key) |
| Unbinds the given key. | |
| SKeymap (const SKeymap &rhs) | |
| Copy constructor. | |
| SKeymap & | operator= (const SKeymap &rhs) |
| operator= | |
Friends | |
| class | SReadline |
The readline keymap wrapper.
Attention: It is not thread safe! Supports: key binding, key unbinding
Definition at line 307 of file SReadline.hpp.
|
inlineexplicit |
Creates a new keymap.
| PrintableBound | if true - the printable characters are bound if false - the keymap is empty |
Definition at line 319 of file SReadline.hpp.
Referenced by operator=(), and SKeymap().
|
inlineexplicit |
Creates a new keymap which is a copy of Pattern.
| Pattern | A keymap to be copied. |
Definition at line 342 of file SReadline.hpp.
|
inline |
Frees the allocated keymap.
Definition at line 354 of file SReadline.hpp.
|
inline |
Copy constructor.
| rhs | Right hand side object of SKeymap |
Definition at line 395 of file SReadline.hpp.
References SKeymap().
|
inline |
Binds the given key to a function.
| Key | A key to be bound |
| Callback | A function to be called when the Key is pressed |
Definition at line 366 of file SReadline.hpp.
|
inline |
Unbinds the given key.
| Key | A key to be unbound |
Definition at line 381 of file SReadline.hpp.
operator=
| rhs | Right hand side object of SKeymap |
Definition at line 407 of file SReadline.hpp.
References SKeymap().
|
friend |
1.13.2