Fix Progress printing on Windows systems
Fix Progress printing on Windows systems

The cursor must be restored after the line is printed, not before.
Take into account the visible viewport to correctly compute the terminal
size.

andrewrk/zig,zig-lang/zig,zig-lang/zig,andrewrk/zig,zig-lang/zig