Browse Source

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
Adam Langley 11 years ago
parent
commit
1a85842c9e
1 changed files with 0 additions and 5 deletions
  1. 0 5
      ssh/terminal/terminal.go

+ 0 - 5
ssh/terminal/terminal.go

@@ -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':