Fix handling of arrow keys with alt and/or shift modifier

Fix #2254

- Properly handle extra chars in the buffer. Patch suggested by @mckelly2833.
- Support alt-arrow sequences in \e[1;3A format
- Support shift-alt-arrow sequences in \e[1;10A format
This commit is contained in:
Junegunn Choi committed 2020-11-24 19:51:19 +09:00
1 parent 1efef88b6e
commit 3fe8eeedc5
5 files changed
+87 -5

No files matched your search

+5
View File
@@ -98,6 +98,11 @@ const (
AltLeft
AltRight
AltSUp
AltSDown
AltSLeft
AltSRight
Alt0
)