gibbz00
a2c9350ff2
Unwrap crossterm::Result<T, ErrorKind>
to std::io::Result
. ( #765 )
2023-04-07 18:17:10 +02:00
Timon
03c25178af
Make the events module an optional feature ( #776 )
2023-04-07 17:09:15 +02:00
Jonathan
e7fc698f24
Do not panic on poll() errors, and ignore EINTR ( #762 )
2023-02-26 16:39:19 +01:00
Michael Davis
bca71adad7
Implement "report alternate keys" from the Kitty Keyboard Protocol ( #754 )
...
The "report alternate keys" part of the Kitty keyboard protocol will
send an additional codepoint containing the "shifted" version of a
key based on the keyboard layout. This is useful for downstream
applications which set up keybindings based on symbols instead of
exact keys being pressed.
For example, underscore (_) with the Alt modifier is sent as minus (-)
with Alt and Shift modifiers. A terminal will send the underscore
codepoint as an alternate though, and we can use that information and
the presence of the Shift modifier to resolve the symbol. Other
examples are 'A-(' (sent as 'A-S-9') and 'A-)' (sent as 'A-S-0').
This change allows pushing the "report alternate keys" flag and
overwrites the keycode and modifiers for any shifted keys sent by the
terminal.
2023-02-11 10:40:11 +01:00
Timon
318f810a39
Support key release events for windows. ( #745 )
2023-01-28 11:05:31 +01:00
Jonathan
814df1c4a0
Fix CI failures ( #746 )
2023-01-12 21:04:29 +01:00
Jonathan
05229b71f9
Replace mio polling with filedescriptor's poll() ( #735 )
2023-01-11 20:15:32 +01:00
Michael Davis
3fe13e18d8
Add a function for checking keyboard enhancement support ( #732 )
...
* Add a function for checking keyboard enhancement support
This follows the Kitty documentation's recommended way to check for
progressive keyboard enhancement: query the flags and then query the
primary device attributes (which is broadly supported). If we receive
only the device attributes, the protocol is not supported.
* Check keyboard enhancement in the event-read example
2023-01-10 19:23:34 +01:00
djarb
4383f8f010
Improved F1 through F4 handling ( #736 )
2022-12-28 13:11:04 +01:00
Leon
bf9f78994a
Fix minor warnings and typos ( #726 )
2022-12-04 12:41:24 +01:00
Nathan
f845cea516
Make Windows resize event match terminal::size
( #714 )
2022-10-09 20:08:17 +02:00
Jesse Weaver
263a0fb5cf
Fix parsing of event types/modifiers with certain keys ( #716 )
2022-10-09 16:14:54 +02:00
Charlie Groves
1fee5ff30c
Add bracketed paste parsing ( #693 )
2022-08-10 09:16:56 +02:00
Jesse Weaver
2a612e0f24
Add extra modifiers/state from kitty keyboard protocol ( #696 )
2022-08-10 09:09:14 +02:00
Jeron Aldaron Lau
2362bc2cc6
Fix tty buffer size typo for unix ( #701 )
2022-08-10 09:07:08 +02:00
Jesse Weaver
551659dee3
Add support for functional key codes from kitty keyboard protocol ( #691 )
2022-07-30 10:33:59 +02:00
Charlie Groves
069497b43b
Emit focus events ( #689 )
2022-07-28 12:07:01 +02:00
Jesse Weaver
60e51be726
Increase support for kitty enhanced keyboard protocol ( #688 )
2022-07-24 14:06:46 +02:00
Timon
0c20590774
0.24 ( #686 )
2022-07-02 21:39:25 +02:00
Arkadiusz Wahlig
fe37c8947b
Add support for cursor keys events in application mode (^[Ox) ( #681 )
2022-07-02 19:38:04 +02:00
Kian-Meng Ang
21155716e2
Fix typos ( #675 )
2022-06-06 18:10:06 +02:00
Demonthos
d48ae42824
handle mouse up event for right and middle buttons ( #665 )
2022-05-23 08:43:48 +02:00
Mathias Kaas-Olsen
0b4a06a97f
Windows input improvements ( #651 )
2022-04-23 10:12:30 +02:00
Gustav Sörnäs
5b19aa6d6a
Use internal doc-links and add a new link ( #653 )
2022-04-23 10:11:46 +02:00
Ivan Tham
c90f3190df
Update to signal-hook-mio 0.8 ( #645 )
2022-04-02 18:58:03 +02:00
WindSoilder
e920d0cfd7
Fix control-character parsing in windows ( #629 )
2022-02-27 19:19:07 +01:00
Timon
9a50fd2ce2
0.23 ( #627 )
2022-02-06 14:21:19 +01:00
David Arnold
979245da22
Add CSIu parser for unix ( #595 )
2022-02-06 10:59:29 +01:00
WindSoilder
32028c43e9
Improve windows event parsing ( #619 )
2022-02-06 10:53:52 +01:00
Timon
db956267f8
0.22.1 ( #614 )
...
# Version 0.22.1
- Update yanked version crossterm-winapi and move to crossterm-winapi 0.9.0.
- Changed panic to error when calling disable-mouse capture without setting it first.
- Update bitflags dependency.
# Version 0.22
- Fix serde Color serialisation/deserialization inconsistency.
- Update crossterm-winapi 0.8.1 to fix panic for certain mouse events
2021-10-19 10:19:16 +02:00
Timon
f909b3db95
0.21 ( #596 )
2021-08-23 19:07:55 +02:00
Kestrer
e1260446e9
Remove writer parameter from execute_winapi ( #570 )
2021-06-10 15:20:00 +02:00
sigmaSd
b31782249e
Fix building with the event-stream feature ( #566 )
2021-05-06 11:28:07 +02:00
Erick Tryzelaar
576990cb82
Update to signal-hook 0.3.8, signal-hook-mio 0.2.1 ( #558 )
2021-05-05 15:59:09 +02:00
Plecra
58f580eaad
crossterm::ErrorKind to io::Error ( #553 )
2021-04-13 08:46:51 +02:00
SirWindfield
b4bdbfc9f3
Remove Unneeded Imports ( #552 )
2021-03-28 13:49:38 +02:00
SirWindfield
6a8f4fdf94
Fix clippy warnings ( #551 )
2021-03-28 13:46:32 +02:00
Danny Milosavljevic
0b598075b7
Add support for function keys F13...F20. ( #542 )
2021-02-27 09:21:18 +01:00
Koxiaet
1418580fed
Remove lazy_static dependency ( #530 )
2021-01-03 14:40:22 +01:00
Koxiaet
df0c2358fd
Inline ansi modules ( #529 )
2021-01-03 14:29:29 +01:00
Koxiaet
6c0f8ebcf6
Fix clippy warnings ( #533 )
2021-01-02 15:24:34 +01:00
Timon
e46decc2f3
Fix wrong resize size return ( #526 )
2020-12-28 10:15:50 +01:00
Kartoffelsaft
744ec05f19
Add support for combining some modifier keys ( #518 )
2020-12-28 09:59:44 +01:00
Koxiaet
0797441893
Make imports & docs more consistent ( #524 )
2020-12-28 09:47:20 +01:00
Koxiaet
e5d3959119
Add support for any event tracking ( #502 )
2020-11-22 13:52:15 +01:00
Carl-Erwin Griffith
30ce6364a9
Fix InternalEventReader::poll timeout computation ( #511 )
2020-11-14 10:48:42 +01:00
quininer
4eee9187d8
Use a single thread for event stream ( #503 )
2020-11-03 10:39:47 +01:00
Sebastian Thiel
4c7abf6109
Fix formatting ( #493 )
2020-09-29 09:09:24 +02:00
Timon
4a6c8efdca
Sync Backtab to also include pressed SHIFT ( #490 )
2020-09-21 09:23:38 +02:00
sigmaSd
2857b30f24
Fix ALT + numbers and ignore invalid keys ( #488 )
2020-09-18 14:52:27 +02:00