class Rtui::Progress

def initialize (title, total, *options)


- bar
- stat
- percentage
- spinner
- title
Components:

- out => STDERR
- bar => "="
Options:


Rtui::Progress.new("Foo", 10, { :components => [:spinner, :percentage]})
A Spinner with just percentage:

Rtui::Progress.new("Foo", 10, { :components => [:bar, :stat]})
Just a bar and ETA:

Examples:

Initializes a progress indicator.
def initialize (title, total, *options)
  options = options.first || {}
  @title = title
  @total = total
  @terminal_width = 80
  @current = 0
  @previous = 0
  @finished = false
  @start_time = Time.now
  @previous_time = @start_time
  @title_width = 14
  @subject = ""
  @out        = options[:out] || STDERR
  @bar_mark   = options[:bar] || "="
  @colors     = options[:colors] || false
  @components = options[:components] || [:title, :percentage, :bar, :stat]
  clear
  show
end