Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/developerstoolbox/bash-colour-testcard
A script to display a table of colours based on the number of colours that your terminal is able to support.
https://github.com/developerstoolbox/bash-colour-testcard
bash colour testcard wolfsoftware
Last synced: about 1 month ago
JSON representation
A script to display a table of colours based on the number of colours that your terminal is able to support.
- Host: GitHub
- URL: https://github.com/developerstoolbox/bash-colour-testcard
- Owner: DevelopersToolbox
- License: mit
- Created: 2021-02-15T10:30:10.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-25T05:05:13.000Z (about 2 months ago)
- Last Synced: 2024-11-25T06:19:14.792Z (about 2 months ago)
- Topics: bash, colour, testcard, wolfsoftware
- Language: Shell
- Homepage:
- Size: 83 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Citation: CITATION.cff
- Codeowners: .github/CODEOWNERS
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
## Overview
This is a script to display a matrix of colours based on the number of colours that your terminal is able to support.
It will make best efforts to size the output to the size of your terminal making it display nicely in most terminals.
It has the following command line options
```
Usage: bash-colour-testcard.sh [ -h ] [ -cnst ] [ -m number ]-h : Print this screen
-c : complete mode (foreground & background [256 x 256])
-m : set the maximum number of colours to display (between 0-256)
-n : display just the number of supported colours
-s : simple mode (colour codes only [256])
-t : test mode (will prompt you for colour codes and display the results)
```> Note: -c, -n, -s & -t must be used independently and not combined. -m is used in conjunction with the others in order to limit the number of
displayed colours, used on its own it does nothing.### Test Mode
The -t command parameter will allow you to enter 'test mode'. In this mode the script will ask you to enter values for the foreground and background
colours and it will then display that colour combination with some test text, it will show you a second test output with the text in bold.You can test as many colour combinations are you like (or until you get bored).