peleteiro/progressbar — pull request #2 by markus1189 (2011-11-03 18:24:45+00:00)
Title: Method of getting terminal width

Hi,

I saw your FIXME about the portability of the get_width method.

I asked myself, why you are not using 'tput'? AFAIK this should be quite portable.

Addtionally, I changed get_width to get_term_width, because I think this makes the intention a little bit clearer.

Maybe you want to have a look

Markus