From 3763a94363306a2c7080fcceebc2c2ed21a26ddc Mon Sep 17 00:00:00 2001 From: The Magician Date: Sat, 4 Nov 2023 16:43:05 +0000 Subject: [PATCH] Add table of regular colors --- termcol | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/termcol b/termcol index aa7399f..7780475 100755 --- a/termcol +++ b/termcol @@ -11,3 +11,16 @@ printf '\n' printf 'Use \\e (or \\033) followed by the control sequence specified next to activate that color.\n' printf 'Use the reset sequence "[0m" to remove all set colors and styles.\n' printf 'When using these sequences in a Bash prompt (e.g. $PS1), be sure to surround the whole escape sequence with escaped brackets to prevent issues with Bash miscounting the number of characters in a line. For example: `export PS1=''\[\\e[36m\]\u@\h \$\[\\e[0m\]''` would create a cyan-colored prompt string.\n' + +printf '\n' + +printf '\e[4;37m\e[1;37mRegular Colors\e[0m\n' +printf '\e[4;37mForeground\e[0m \e[4;37mBackground\e[0m\n' +printf '\e[30m[30m Black\e[0m \e[40m[40m Black\e[0m\n' +printf '\e[31m[31m Red\e[0m \e[41m[41m Red\e[0m\n' +printf '\e[32m[32m Green\e[0m \e[42m[42m Green\e[0m\n' +printf '\e[33m[33m Brown\e[0m \e[43m[43m Brown\e[0m\n' +printf '\e[34m[34m Blue\e[0m \e[44m[44m Blue\e[0m\n' +printf '\e[35m[35m Purple\e[0m \e[45m[45m Purple\e[0m\n' +printf '\e[36m[36m Cyan\e[0m \e[46m[46m Cyan\e[0m\n' +printf '\e[37m[37m Light grey\e[0m \e[47m[47m Light grey\e[0m\n'