Skip to content

A script to create and export a set of variables which contain the 8 basic colours that can be displayed on most terminals.

License

Notifications You must be signed in to change notification settings

DevelopersToolbox/bash-colour-include

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Overview

This is a script that creates and exports a set of variables which contain the 8 basic colours that can be displayed on most terminals. It could easily be extended to use more colours if wanted.

In addition it also creates and export a set of variables which handle other specific useful terminal information, cls, bold, reset etc.

The idea is for it to be included by other scripts to allow for colour to be added to a script in a clean and simple way.

Usage

source bash-colour-include.sh

echo "${bgBlack}${fgRed}This should be red text${reset}"
echo "${bgBlack}${fgYellow}This should be yellow text${reset}"
echo "${bgWhite}${fgRed}This should be red on a white background${reset}"

Does my terminal support colour ?

If you do not known if your terminal supports colour, then take a look at our testcard tool which will show you.


About

A script to create and export a set of variables which contain the 8 basic colours that can be displayed on most terminals.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  
  •  

Packages

No packages published

Contributors 2

  •  
  •  

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy