Skip to content

A script to display a table of colours based on the number of colours that your terminal is able to support.

License

Notifications You must be signed in to change notification settings

DevelopersToolbox/bash-colour-testcard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevelopersToolbox logo
Github Build Status License Created
Release Released Commits since release

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).


About

A script to display a table of colours based on the number of colours that your terminal is able to support.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  
  •  

Packages

No packages published

Languages