verigak / progress

Easy to use progress bars for Python
ISC License
1.41k stars 179 forks source link

Basic Windows support #66

Open hargikas opened 5 years ago

hargikas commented 5 years ago

Closes Issue #58

This is the first draft of a working fix for a windows console support of a progress bar.

verigak commented 5 years ago

This looks like a very heavy handed approach, the original suggestion on #58 was a one line change. Any other windows people care to comment on this?

hargikas commented 5 years ago

It is heavy because it was the easiest way to hide & show the cursor and also clear the line in the windows console.

You can also choose to go down the path where in windows platform the cursor is always visible and the line is never cleared.

The only problem I saw with that solution is that the display of eta_td becomes a nuance (the printed string is bigger in the beginning and smaller at the end, leaving old characters at the end of the output) .