#include <list>
#include <map>
#include <string>
#include <cwidget/curses++.h>
Go to the source code of this file.
Namespaces | |
namespace | cwidget |
namespace | cwidget::config |
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... | |
Defines | |
#define | KEY_CTRL(x) key(((x)&~(64|32)), false) |
Attempt to compute the control character related to a terminal key. | |
#define | KEY_ALT(x) key((0x200 | (x)), false) |
Typedefs | |
typedef std::vector< key > | cwidget::config::keybinding |
The type used to store the keybindings of a function. | |
Functions | |
key | cwidget::config::parse_key (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. |
#define KEY_CTRL | ( | x | ) | key(((x)&~(64|32)), false) |
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().