From 1a85842c9ed153459eaf94f2ff4c4e914c54410d Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Fri, 7 Nov 2014 19:20:14 -0800 Subject: [PATCH] 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 --- ssh/terminal/terminal.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ssh/terminal/terminal.go b/ssh/terminal/terminal.go index 1ee1b44..fd97611 100644 --- a/ssh/terminal/terminal.go +++ b/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':