Commit Graph

8 Commits

Author SHA1 Message Date
ArthurSonzogni
fcc49fdce7 Format using iwyu. 2021-05-15 00:19:19 +02:00
ArthurSonzogni
155758c073 Use IWYU. 2021-05-01 23:19:07 +02:00
ArthurSonzogni
a27c878a3f Mouse support. Fix & verify Webassembly support.
There was some undefined behavior to be fixed in the terminal input
parser.

The behavior of flush seems to have change. The fix was to invert '\0'
and std::flush.
2021-04-25 16:58:16 +02:00
ArthurSonzogni
0b9b6c692a Improve mouse support 2021-04-25 15:22:38 +02:00
ArthurSonzogni
8037a5fa5f Improve mouse support for menu and toggle. 2021-04-24 18:16:13 +02:00
ArthurSonzogni
d685a8655e Parse mouse middle 2021-04-18 18:42:42 +02:00
ArthurSonzogni
cbd13499ae Parse mouse events. 2021-04-18 18:32:38 +02:00
Arthur Sonzogni
406355df8c Fix parsing of keys that are prefix of others. (#58)
The ESC key generates sequences that are prefix of others. For instance:
- ESC => [27]
- F1 =>  [27, 79, 8]

As a result, we can't generate the ESC event when receiving [27],
because it might be the start of the [27, 79, 8] sequence (or not).

Application usually applies a timeout to help detecting the ESC key.
This patch introduce a timeout. It is set to 50ms.

Bug: https://github.com/ArthurSonzogni/FTXUI/issues/55
2020-10-25 01:57:56 +02:00