]> Cypherpunks repositories - gostls13.git/commit
exp/terminal: several cleanups
authorAdam Langley <agl@golang.org>
Thu, 22 Dec 2011 16:23:57 +0000 (11:23 -0500)
committerAdam Langley <agl@golang.org>
Thu, 22 Dec 2011 16:23:57 +0000 (11:23 -0500)
commit7350c771f89e1a068677121341908a8846905c2c
tree5a475eb6be10c5417cd69de5c63c7ea7a21d2541
parentf1ebbf80bd8fcc6b38e958f170ee755cf28c27f7
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
https://golang.org/cl/5479043
src/pkg/exp/terminal/terminal.go
src/pkg/exp/terminal/util.go