Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(275)

Unified Diff: ssh/terminal/terminal.go

Issue 13839047: code review 13839047: go.crypto/ssh/terminal: Allow ^A and ^E as synonyms for...
Patch Set: diff -r ca17ccb492a0 https://code.google.com/p/go.crypto Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ssh/terminal/terminal_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ssh/terminal/terminal.go
===================================================================
--- a/ssh/terminal/terminal.go
+++ b/ssh/terminal/terminal.go
@@ -132,6 +132,10 @@ func bytesToKey(b []byte) (rune, []byte)
}
switch b[0] {
+ case 1: // ^A
+ return keyHome, b[1:]
+ case 5: // ^E
+ return keyEnd, b[1:]
case 8: // ^H
return keyBackspace, b[1:]
case 11: // ^K
« no previous file with comments | « no previous file | ssh/terminal/terminal_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b