Import std.term.input
InputEvent
struct
Public Struct InputEvent Implements Printable
Something that came from a terminal: a Key, what the Mouse did, the Columns and Rows it has after a RESIZE, or the Text PASTEd, by its Kind.
-
What it is.
-
A KEY's key.
-
A MOUSE's mouse event.
-
How many columns the terminal has after a RESIZE.
-
How many rows the terminal has after a RESIZE.
-
A PASTE's text.
-
A key typed.
-
What the
mousedid. -
The terminal's size once it's changed.
-
Text
pasted. -
Whether it's the key that types
c, as KeyEvent's IsChar says. -
Whether it's that key without a character, with no modifiers.
-
Like "key Ctrl+C", "mouse PRESS LEFT at 3, 4", "resize 80x24", or "paste "text"".
Report an issue with this page or with FutureBlitz on GitHub.