Skip to content

piotrmurach/tty-color-cli

Repository files navigation

TTY::Color CLI

Gem Version Actions CI Build status

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

  1. Fork it ( https://github.com/piotrmurach/tty-color-cli/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

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.

About

CLI tool for terminal color capabilities detection

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages