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:
Adam Langley
2014-11-07 19:20:14 -08:00
parent 30ad74476e
commit 1a85842c9e
-5
View File
@@ -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':