No description
Find a file
notramo 21d0b9b73e Added pulsate spinners (#4)
* Added 'pulsate' charset.

* Added more 'pulsate' spinners.
2018-02-22 15:03:33 +03:00
examples update examples to return a string array as chars 2016-08-23 22:08:22 +02:00
images color 2015-12-30 14:23:34 +02:00
spec init 2015-12-28 09:54:44 +02:00
src Added pulsate spinners (#4) 2018-02-22 15:03:33 +03:00
.gitignore init 2015-12-28 09:54:44 +02:00
.travis.yml init 2015-12-28 09:54:44 +02:00
LICENSE init 2015-12-28 09:54:44 +02:00
README.md charset 2015-12-30 16:21:42 +02:00
shard.yml Bumped version number to v0.1.1. 2017-06-20 23:24:05 -06:00

Spinner

Terminal Spinner for Crystal Programming Language

All

Installation

Add this to your application's shard.yml:

dependencies:
  spinner:
    github: askn/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]

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

Color

Contributing

  1. Fork it ( https://github.com/askn/spinner/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • askn Aşkın Gedik - creator, maintainer