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

19 lines
265 B
Crystal

require "../src/spinner"
puts "starting..."
sp = Spin.new(0.1)
sp.start
sleep 3
sp.stop
puts "end!"
sp1 = Spin.new(0.1, Spinner::Charset[:three_dots])
sp1.start
sleep 3
sp1.stop
sp1 = Spin.new(0.1)
sp1.chars = Spinner::Charset[:arrow]
sp1.start
sleep 3
sp1.stop