mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
as you could have multiple messages per line with streams, don't \r
Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
This commit is contained in:
parent
af58923847
commit
03f0ec35ae
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ func (jm *JSONMessage) Display(out io.Writer, isTerminal bool) error {
|
||||||
return jm.Error
|
return jm.Error
|
||||||
}
|
}
|
||||||
var endl string
|
var endl string
|
||||||
if isTerminal {
|
if isTerminal && jm.Stream == "" {
|
||||||
// <ESC>[2K = erase entire current line
|
// <ESC>[2K = erase entire current line
|
||||||
fmt.Fprintf(out, "%c[2K\r", 27)
|
fmt.Fprintf(out, "%c[2K\r", 27)
|
||||||
endl = "\r"
|
endl = "\r"
|
||||||
|
|
Loading…
Add table
Reference in a new issue