~mikini/hometools

ref: 637040b13e70a39c89ba1e76df7dfeed6a0fe916 hometools/ansi_colors.sh -rwxr-xr-x 715 bytes
637040b1 — Mikkel Kirkgaard Nielsen Add COPYING and README.md 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/bash

# Reminder of how to output colors on terminal.
# https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters

echo -e "\e[31m31: Foreground red\e[0m"
echo -e "\e[32m32: Foreground green\e[0m"
echo -e "\e[33m33: Foreground yellow\e[0m"
echo -e "\e[34m34: Foreground blue\e[0m"
echo -e "\e[35m35: Foreground magenta\e[0m"
echo -e "\e[36m36: Foreground cyan\e[0m"
echo -e "\e[37m37: Foreground white\e[0m"

echo -e "\e[41m41: Background red\e[0m"
echo -e "\e[42m42: Background green\e[0m"
echo -e "\e[43m43: Background yellow\e[0m"
echo -e "\e[44m44: Background blue\e[0m"
echo -e "\e[45m45: Background magenta\e[0m"
echo -e "\e[46m46: Background cyan\e[0m"
echo -e "\e[47m47: Background white\e[0m"