simple-spinner/examples/color.cr
Aşkın Gedik b31b23d45f charset
2015-12-30 16:21:42 +02:00

11 lines
178 B
Crystal

require "../src/spinner"
require "colorize"
chars = Spinner::Charset[:arrow].map do |c|
c.colorize(:light_green)
end
spin = Spin.new(0.2, chars)
spin.start
sleep 3
spin.stop