make the terminal-size output only if sys.platform != 'win32'
Isolate the relative percentage computation

And add a test for it.