lib/powerbar.rb in powerbar-1.0.13 vs lib/powerbar.rb in powerbar-1.0.14
- old
+ new
@@ -51,10 +51,10 @@
# The :output Proc is called to draw on the screen --------------------.
:output => Proc.new{ |s| $stderr.print s[0..terminal_width()-1] }, # <-'
:interval => 0.1, # Minimum interval between screen refreshes (in seconds)
:show_eta => true, # Set to false if you want to hide the ETA without changing the template
:template => { # <== template for a finite progress bar on a tty
- :pre => "\e[1000D\e[?25l", # printed before the progress-bar
+ :pre => "\e[1G\e[?25l", # printed before the progress-bar
#
# :main is the progressbar template
#
# The following tokens are available:
# msg, bar, rate, percent, elapsed, eta, done, total