class ProgressBar::Outputs::Tty

def bar_update_string

def bar_update_string
  bar.to_s
end

def clear

def clear
  stream.print clear_string
  stream.print "\r"
end

def default_format

def default_format
  ENV['RUBY_PROGRESS_BAR_FORMAT'] || DEFAULT_FORMAT_STRING
end

def eol

def eol
  bar.stopped? ? "\n" : "\r"
end

def resolve_format(other_format)

def resolve_format(other_format)
  other_format || default_format
end