spinner
forked fromSpinner
Terminal Spinner for Crystal Programming Language
Installation
Add this to your application's shard.yml
:
dependencies:
spinner:
github: flipez/spinner
Usage
require "spinner"
sp = Spin.new
sp.start
sleep 3
sp.stop
Options
delay
: default = 0.1
chars
: you can choose charset from CHARSET default = Spinner::Charset[:pipe]
text
: Define text which appends to your spinner default = ""
Examples
require "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
Contributing
- Fork it ( https://github.com/flipez/spinner/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
Repository
spinner
Owner
Statistic
- 0
- 0
- 0
- 3
- 0
- over 1 year ago
- March 8, 2023
License
MIT License
Links
Synced at
Thu, 21 Nov 2024 23:37:18 GMT
Languages