go.crypto/ssh/terminal: fix Home and End.
In my notes I had Home and End down as OH and OF. But that's nonsense, they are [H and ]F. I never noticed before because I don't have Home and End keys on my keyboard. LGTM=bradfitz R=bradfitz CC=golang-codereviews https://golang.org/cl/172100043
This commit is contained in:
@@ -166,11 +166,6 @@ func bytesToKey(b []byte) (rune, []byte) {
|
||||
return keyRight, b[3:]
|
||||
case 'D':
|
||||
return keyLeft, b[3:]
|
||||
}
|
||||
}
|
||||
|
||||
if len(b) >= 3 && b[0] == keyEscape && b[1] == 'O' {
|
||||
switch b[2] {
|
||||
case 'H':
|
||||
return keyHome, b[3:]
|
||||
case 'F':
|
||||
|
||||
Reference in New Issue
Block a user