Clone of http://0xcc.net/ruby-progressbar/index.html.en