https://github.com/piotrmurach/tty-color-cli
CLI tool for terminal color capabilities detection
https://github.com/piotrmurach/tty-color-cli
cli color-cli ruby ruby-gem tty
Last synced: 10 months ago
JSON representation
CLI tool for terminal color capabilities detection
- Host: GitHub
- URL: https://github.com/piotrmurach/tty-color-cli
- Owner: piotrmurach
- License: mit
- Created: 2016-03-05T15:19:33.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-02-02T21:33:55.000Z (over 2 years ago)
- Last Synced: 2025-07-14T17:54:33.811Z (12 months ago)
- Topics: cli, color-cli, ruby, ruby-gem, tty
- Language: Ruby
- Homepage: https://piotrmurach.github.io/tty/
- Size: 51.8 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# TTY::Color CLI
[][gem]
[][gh_actions_ci]
[][appveyor]
[gem]: http://badge.fury.io/rb/tty-color-cli
[gh_actions_ci]: https://github.com/piotrmurach/tty-color-cli/actions/workflows/ci.yml
[appveyor]: https://ci.appveyor.com/project/piotrmurach/tty-color-cli
> CLI tool for terminal color capabilities detection
**TTY::Color CLI** provides cli for [TTY::Color](https://github.com/piotrmurach/tty-color)
## Installation
Add this line to your application's Gemfile:
```ruby
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:
```bash
$ tty-color --help
```
To check for terminal color support run `tty-color` or pass a flag `--support` or `-s` like so:
```bash
tty-color
tty-color -s
tty-color --support
```
To check number of supported colors do:
```bash
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](https://github.com/piotrmurach/tty-color-cli/blob/master/CODE_OF_CONDUCT.md).
## Copyright
Copyright (c) 2016 Piotr Murach. See LICENSE for further details.