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

Issue 5479043: code review 5479043: exp/terminal: several cleanups (Closed)

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

Description

exp/terminal: several cleanups 1) Add EscapeCodes to the terminal so that applications don't wire them in. 2) Add a callback for auto-complete 3) Fix an issue with input lines longer than the width of the terminal. 4) Have Write() not stomp the current line. It now erases the current input, writes the output and reprints the prompt and partial input. 5) Support prompting without local echo in Terminal. 6) Add GetSize to report the size of terminal.

Patch Set 1 #

Patch Set 2 : diff -r 6826aebdf413 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 6826aebdf413 https://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 4 : diff -r 15b63cc10b22 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r e16104a1a18a https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -27 lines) Patch
M src/pkg/exp/terminal/terminal.go View 1 2 3 14 chunks +178 lines, -26 lines 0 comments Download
M src/pkg/exp/terminal/util.go View 1 2 3 2 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 5
agl1
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 5 months ago (2011-12-08 22:27:56 UTC) #1
rsc
R=bradfitz
13 years, 5 months ago (2011-12-14 21:26:43 UTC) #2
bradfitz
http://codereview.appspot.com/5479043/diff/4001/src/pkg/exp/terminal/terminal.go File src/pkg/exp/terminal/terminal.go (right): http://codereview.appspot.com/5479043/diff/4001/src/pkg/exp/terminal/terminal.go#newcode44 src/pkg/exp/terminal/terminal.go:44: Escape *EscapeCodes needs doc, including what nil means http://codereview.appspot.com/5479043/diff/4001/src/pkg/exp/terminal/util.go ...
13 years, 5 months ago (2011-12-14 21:34:57 UTC) #3
agl1
http://codereview.appspot.com/5479043/diff/4001/src/pkg/exp/terminal/terminal.go File src/pkg/exp/terminal/terminal.go (right): http://codereview.appspot.com/5479043/diff/4001/src/pkg/exp/terminal/terminal.go#newcode44 src/pkg/exp/terminal/terminal.go:44: Escape *EscapeCodes On 2011/12/14 21:34:57, bradfitz wrote: > needs ...
13 years, 5 months ago (2011-12-19 22:08:15 UTC) #4
agl1
13 years, 5 months ago (2011-12-22 16:24:18 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=cff4b323bd94 ***

exp/terminal: several cleanups

1) Add EscapeCodes to the terminal so that applications don't wire
   them in.
2) Add a callback for auto-complete
3) Fix an issue with input lines longer than the width of the
   terminal.
4) Have Write() not stomp the current line. It now erases the current
   input, writes the output and reprints the prompt and partial input.
5) Support prompting without local echo in Terminal.
6) Add GetSize to report the size of terminal.

R=bradfitz
CC=golang-dev
http://codereview.appspot.com/5479043
Sign in to reply to this message.

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