module

Term::Progress::Formatters

Constants

FORMATS = {"default" => "[:bar] :percent :current/:total", "minimal" => ":percent :bar", "download" => "[:bar] :percent :byte_rate ETA: :eta", "tasks" => ":current/:total [:bar] :elapsed", "classic" => ":title [:bar] :percent", "detailed" => ":title [:bar] :percent :current/:total :rate :elapsed/:eta"}

Instance methods

format(template : String, tokens : Hash(String, String)) : String
Source
format_fraction(current : Int64, total : Int64) : String
Source
format_percentage(ratio : Float64, precision = 0) : String
Source
render_bar(width : Int32, ratio : Float64, complete_char = "█", incomplete_char = "░", head_char = nil)
Source
render_blocks(width : Int32, ratio : Float64)
Source
render_dots(current : Int64, total : Int64, width = 50)
Source