Skip to content

Commit

Permalink
Fix issue while printing doers progress.
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed May 29, 2018
1 parent d4a42fc commit e110237
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utils/do.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,9 @@ Loop:
time.Sleep(time.Millisecond * 250)
if lines > 0 {
// Move cursor up, to the line it was before printing worker's progress
ansi.CursorNextLine(lines)
ansi.CursorPreviousLine(lines)
}
}
}
ansi.Printf("%c[0J", 27)
wg.Done()
}

0 comments on commit e110237

Please sign in to comment.