mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-22 18:59:59 +08:00
Add documentation about ./example/util/print_key_press (#73)
Fixed: https://github.com/ArthurSonzogni/FTXUI/issues/72
This commit is contained in:
parent
73a3c24394
commit
6ed5051cfc
@ -5,7 +5,7 @@
|
|||||||
<tab type="examples" visible="yes" title="" intro=""/>
|
<tab type="examples" visible="yes" title="" intro=""/>
|
||||||
<tab type="filelist" visible="yes" title=""/>
|
<tab type="filelist" visible="yes" title=""/>
|
||||||
|
|
||||||
<tab type="pages" visible="yes" title="" intro=""/>
|
<tab type="pages" visible="no" title="" intro=""/>
|
||||||
<tab type="modules" visible="yes" title="" intro=""/>
|
<tab type="modules" visible="yes" title="" intro=""/>
|
||||||
<tab type="namespaces" visible="yes" title="">
|
<tab type="namespaces" visible="yes" title="">
|
||||||
<tab type="namespacelist" visible="yes" title="" intro=""/>
|
<tab type="namespacelist" visible="yes" title="" intro=""/>
|
||||||
|
@ -11,10 +11,16 @@ namespace ftxui {
|
|||||||
|
|
||||||
/// @brief Represent an event. It can be key press event, a terminal resize, or
|
/// @brief Represent an event. It can be key press event, a terminal resize, or
|
||||||
/// more ...
|
/// more ...
|
||||||
//
|
///
|
||||||
// Documentation:
|
/// For example:
|
||||||
// https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
|
/// - Printable character can be created using Event::Character('a').
|
||||||
//
|
/// - Some special are predefined, like Event::ArrowLeft.
|
||||||
|
/// - One can find arbitrary code for special Events using:
|
||||||
|
/// ./example/util/print_key_press
|
||||||
|
/// For instance, CTLR+A maps to Event::Special({1});
|
||||||
|
///
|
||||||
|
/// Useful documentation about xterm specification:
|
||||||
|
/// https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
|
||||||
struct Event {
|
struct Event {
|
||||||
// --- Constructor section ---------------------------------------------------
|
// --- Constructor section ---------------------------------------------------
|
||||||
static Event Character(char);
|
static Event Character(char);
|
||||||
|
Loading…
Reference in New Issue
Block a user