]> Cypherpunks repositories - gostls13.git/commit
exp/terminal: add SetPrompt and handle large pastes.
authorAdam Langley <agl@golang.org>
Sat, 14 Jan 2012 15:59:11 +0000 (10:59 -0500)
committerAdam Langley <agl@golang.org>
Sat, 14 Jan 2012 15:59:11 +0000 (10:59 -0500)
commita9e1f6d7a67d0cc423765e83193640335e8b8301
treed6e1c834b8370019333f7a3b572fe14887cc44c3
parent423a09760bf90fe16dc03251792360daf8a99de0
exp/terminal: add SetPrompt and handle large pastes.

(This was missing in the last change because I uploaded it from the
wrong machine.)

Large pastes previously misbehaved because the code tried reading from
the terminal before checking whether an line was already buffered.
Large pastes can cause multiples lines to be read at once from the
terminal.

R=bradfitz
CC=golang-dev
https://golang.org/cl/5542049
src/pkg/exp/terminal/terminal.go