lib/powerbar.rb in powerbar-1.0.14 vs lib/powerbar.rb in powerbar-1.0.15

- old
+ new

@@ -67,11 +67,11 @@ # # The surrounding text is only rendered when <foo> # evaluates to something other than nil. :main => '${<msg>}: ${[<bar>] }${<rate>/s }${<percent>% }${<elapsed>}${, ETA: <eta>}', :post => '', # printed after the progressbar - :wipe => "\e[0m\e[1000D\e[K", # printed when 'wipe' is called + :wipe => "\e[0m\e[1G\e[K", # printed when 'wipe' is called :close => "\e[?25h\n", # printed when 'close' is called :exit => "\e[?25h", # printed if the process exits unexpectedly :barchar => RUBY18 ? '#' : "\u2588", # fill-char for the progress-bar :padchar => RUBY18 ? '.' : "\u2022" # padding-char for the progress-bar }, @@ -79,13 +79,13 @@ :infinite => { # <== Settings for an infinite progress "bar" (when total is :unknown) :output => Proc.new{ |s| $stderr.print s[0..terminal_width()-1] }, :interval => 0.1, :show_eta => false, :template => { - :pre => "\e[1000D\e[?25l", + :pre => "\e[1G\e[?25l", :main => "${<msg>}: ${<done> }${<rate>/s }${<elapsed>}", :post => "\e[K", - :wipe => "\e[0m\e[1000D\e[K", + :wipe => "\e[0m\e[1G\e[K", :close => "\e[?25h\n", :exit => "\e[?25h", :barchar => RUBY18 ? '#' : "\u2588", :padchar => RUBY18 ? '.' : "\u2022" },