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

Issue 171330043: code review 171330043: go.crypto/ssh/terminal: support bracketed paste mode. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 5 months ago by agl1
Modified:
9 years, 5 months ago
Reviewers:
bradfitz
CC:
golang-codereviews
Visibility:
Public.

Description

go.crypto/ssh/terminal: support bracketed paste mode. Some terminals support a mode where pasted text is bracketed by escape sequences. This is very useful for terminal applications that otherwise have no good way to tell pastes and typed text apart. This change allows applications to enable this mode and, if the terminal supports it, will suppress autocompletes during pastes and indicate to the caller that a line came entirely from pasted text.

Patch Set 1 #

Patch Set 2 : diff -r 7ad4bae3f4670ffa3f967e498c0e2db28564dd7d https://code.google.com/p/go.crypto/ #

Patch Set 3 : diff -r 7ad4bae3f4670ffa3f967e498c0e2db28564dd7d https://code.google.com/p/go.crypto/ #

Total comments: 6

Patch Set 4 : diff -r 8fec09c61d5d66f460d227fd1df3473d7e015bc6 https://code.google.com/p/go.crypto/ #

Patch Set 5 : diff -r 8fec09c61d5d66f460d227fd1df3473d7e015bc6 https://code.google.com/p/go.crypto/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -35 lines) Patch
M ssh/terminal/terminal.go View 1 2 3 11 chunks +110 lines, -35 lines 1 comment Download
M ssh/terminal/terminal_test.go View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 5
agl1
Hello bradfitz@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.crypto/
9 years, 5 months ago (2014-11-09 01:13:46 UTC) #1
bradfitz
LGTM after naming nits https://codereview.appspot.com/171330043/diff/40001/ssh/terminal/terminal.go File ssh/terminal/terminal.go (right): https://codereview.appspot.com/171330043/diff/40001/ssh/terminal/terminal.go#newcode825 ssh/terminal/terminal.go:825: type pasteIndicator struct{} error types ...
9 years, 5 months ago (2014-11-12 17:52:22 UTC) #2
agl1
*** Submitted as https://code.google.com/p/go/source/detail?r=60a80aaa50ff&repo=crypto *** go.crypto/ssh/terminal: support bracketed paste mode. Some terminals support a mode ...
9 years, 5 months ago (2014-11-16 22:02:02 UTC) #3
agl1
https://codereview.appspot.com/171330043/diff/40001/ssh/terminal/terminal.go File ssh/terminal/terminal.go (right): https://codereview.appspot.com/171330043/diff/40001/ssh/terminal/terminal.go#newcode825 ssh/terminal/terminal.go:825: type pasteIndicator struct{} On 2014/11/12 17:52:21, bradfitz wrote: > ...
9 years, 5 months ago (2014-11-17 16:13:21 UTC) #4
bradfitz
9 years, 5 months ago (2014-11-17 16:18:31 UTC) #5
Message was sent while issue was closed.
https://codereview.appspot.com/171330043/diff/80001/ssh/terminal/terminal.go
File ssh/terminal/terminal.go (right):

https://codereview.appspot.com/171330043/diff/80001/ssh/terminal/terminal.go#...
ssh/terminal/terminal.go:825: type pasteIndicatorError struct{}
in retrospect, why does this type exist? It has no state and it's never tested
for, and it's private. You could just do:

  var ErrPasteIndicator = errors.New("terminal: ErrPasteIndicator not correctly
handled")
Sign in to reply to this message.

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