Revamp escape sequence processing for WSL

Also add support for alt-[0-9] and f1[12]
This commit is contained in:
Junegunn Choi committed 2016-11-19 22:42:15 +09:00
1 parent 4b332d831e
commit 8c661d4e8c
4 files changed
+184 -243

No files matched your search

+8 -3
View File
@@ -67,18 +67,24 @@ const (
F8
F9
F10
F11
F12
AltEnter
AltSpace
AltSlash
AltBS
AltA
Alt0
)
const ( // Reset iota
AltA = Alt0 + 'a' - '0' + iota
AltB
AltC
AltD
AltE
AltF
AltZ = AltA + 'z' - 'a'
)
@@ -136,7 +142,6 @@ type MouseEvent struct {
}
var (
_buf []byte
_color bool
_prevDownTime time.Time
_clickY []int