18 event.input_ = std::move(
input);
19 event.type_ = Type::Character;
46 event.input_ = std::move(
input);
47 event.type_ = Type::Mouse;
48 event.data_.mouse =
mouse;
56 event.input_ = std::move(
input);
57 event.type_ = Type::CursorShape;
58 event.data_.cursor_shape = shape;
68 event.input_ = std::move(
input);
76 event.input_ = std::move(
input);
77 event.type_ = Type::CursorPosition;
78 event.data_.cursor = {x, y};
std::string to_string(const std::wstring &s)
Convert a UTF8 std::string into a std::wstring.
Represent an event. It can be key press event, a terminal resize, or more ...
static const Event TabReverse
static const Event ArrowLeftCtrl
static Event CursorShape(std::string, int shape)
An event corresponding to a terminal DCS (Device Control String).
static const Event PageUp
static const Event Escape
static Event Mouse(std::string, Mouse mouse)
An event corresponding to a given typed character.
static const Event Custom
static Event Character(std::string)
An event corresponding to a given typed character.
static const Event Backspace
static const Event ArrowUp
const std::string & input() const
static const Event ArrowDown
static const Event ArrowUpCtrl
static const Event PageDown
static Event CursorPosition(std::string, int x, int y)
static const Event Return
static const Event ArrowLeft
static const Event Delete
static const Event ArrowDownCtrl
static const Event Insert
static const Event ArrowRightCtrl
static Event Special(std::string)
An custom event whose meaning is defined by the user of the library.
static const Event ArrowRight
A mouse event. It contains the coordinate of the mouse, the button pressed and the modifier (shift,...