Go to the documentation of this file.
27 #include <cwidget/curses++.h>
55 key(wint_t _ch,
bool _function_key)
63 return ch < other.
ch || (
ch == other.
ch &&
67 bool operator==(
const key &other)
const
89 std::map<std::string, keybinding> keymap;
108 std::wstring
keyname(
const std::string &tag)
const;
122 auto it = keymap.find(tag);
124 if (it == keymap.end())
149 void set(std::string tag,
const key &stroke)
152 strokes.push_back(stroke);
172 key parse_key(
const std::wstring &keystr);
215 #define KEY_CTRL(x) key(((x)&~(64|32)), false)
216 #define KEY_ALT(x) key((0x200 | (x)), false)
Support for defining and remapping keybindings.
#define KEY_CTRL(x)
Attempt to compute the control character related to a terminal key.
Definition: keybindings.h:215