Sha256: 54a1c2408de58e77e6c79a33830967417c8ca6e0eda2e4d480a195fda4d02ba9

Contents?: true

Size: 252 Bytes

Versions: 5

Compression:

Stored size: 252 Bytes

Contents

require 'tty-progressbar'
require 'pastel'

pastel = Pastel.new
green = pastel.on_green(" ")
red = pastel.on_red(" ")

bar = TTY::ProgressBar.new("|:bar|",
  total: 30,
  complete: green,
  incomplete: red
)

30.times do
  sleep(0.1)
  bar.advance
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tty-progressbar-0.5.1 examples/color.rb
tty-progressbar-0.5.0 examples/color.rb
tty-progressbar-0.4.0 examples/color.rb
tty-progressbar-0.3.0 examples/color.rb
tty-progressbar-0.2.0 examples/color.rb