Awesome
TTY::Color CLI
CLI tool for terminal color capabilities detection
TTY::Color CLI provides cli for TTY::Color
Installation
Add this line to your application's Gemfile:
gem "tty-color-cli"
And then execute:
$ bundle
Or install it yourself as:
$ gem install tty-color-cli
Usage
Running tty-color
with -h
or --help
flags will display help information:
$ tty-color --help
To check for terminal color support run tty-color
or pass a flag --support
or -s
like so:
tty-color
tty-color -s
tty-color --support
To check number of supported colors do:
tty-color -m
tty-color --mode
Contributing
- Fork it ( https://github.com/piotrmurach/tty-color-cli/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
Code of Conduct
Everyone interacting in the tty-color-cli project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
Copyright
Copyright (c) 2016 Piotr Murach. See LICENSE for further details.