commit f6e1de11c6e8050bdf697ff50e5f787e39a2787c Author: The Magician Date: Sat Nov 4 16:42:09 2023 +0000 Add title and introductory paragraph diff --git a/termcol b/termcol new file mode 100755 index 0000000..aa7399f --- /dev/null +++ b/termcol @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +clear + +printf '\e[4;37m\e[45m\e[30mA Book of Colors\e[0m\n' + +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'