Merge pull request #6490 from icecrime/6203-artifacts_on_events_output

Avoid erasing line for non-progress messages
This commit is contained in:
Victor Vieux 2014-06-17 16:26:51 -07:00
commit f0ec901819
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ func (jm *JSONMessage) Display(out io.Writer, isTerminal bool) error {
return jm.Error
}
var endl string
if isTerminal && jm.Stream == "" {
if isTerminal && jm.Stream == "" && jm.Progress != nil {
// <ESC>[2K = erase entire current line
fmt.Fprintf(out, "%c[2K\r", 27)
endl = "\r"