|
cwidget 0.5.18
|
Support for defining and remapping keybindings. More...
#include <map>#include <string>#include <vector>#include <cwidget/curses++.h>Go to the source code of this file.
Classes | |
| struct | cwidget::config::key |
| Represents a keystroke as seen by curses. More... | |
| class | cwidget::config::keybindings |
| Stores the keys bound to various functions. More... | |
Namespaces | |
| namespace | cwidget |
| The namespace containing everything defined by cwidget. | |
| namespace | cwidget::config |
| Routines that support parsing and interpreting user configuration. | |
Macros | |
| #define | KEY_CTRL(x) |
| Attempt to compute the control character related to a terminal key. | |
| #define | KEY_ALT(x) |
Typedefs | |
| typedef std::vector< key > | cwidget::config::keybinding |
| The type used to store the keybindings of a function. | |
Functions | |
| key | cwidget::config::parse_key (const std::wstring &keystr) |
| Parse a keystroke definition. | |
| wstring | cwidget::config::keyname (const key &k) |
| Convert a keystroke to its string definition. | |
| wstring | cwidget::config::readable_keyname (const key &k) |
| Convert a keystroke to a human-readable keyname. | |
Support for defining and remapping keybindings.
| #define KEY_ALT | ( | x | ) |
| #define KEY_CTRL | ( | x | ) |
Attempt to compute the control character related to a terminal key.
| x | The character to modify (for instance, 'A' to return 'Control-A'). |
Referenced by cwidget::toplevel::init().