roelvandijk / terminal-progress-bar

Other
24 stars 9 forks source link

Call hFlush after outputting. #9

Closed andersjel closed 8 years ago

andersjel commented 9 years ago

Instead of configuring stdout to be non-buffering. System.ProgressBar could just call System.IO.hFlush after printing. This also causes less flicker of the cursor as half-written lines are never printed.

roelvandijk commented 8 years ago

Excellent idea. Thanks for the suggestion!