0.0
No release in over 3 years
Low commit activity in last 3 years
A command-line tool for terminal color capabilities detection
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.17
>= 0
>= 3.0

Runtime

~> 0.5
 Project Readme

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.