Add section on bright colors
This commit is contained in:
parent
c97e3d6d65
commit
4ffe3a01eb
|
@ -36,13 +36,18 @@ title() {
|
|||
|
||||
subtitle() {
|
||||
if test -z "$1"; then
|
||||
printf "No title provided." 1>&2
|
||||
printf "No subtitle provided." 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
printf "\e[4;37m"
|
||||
printf "$1"
|
||||
printf "\e[0m\n"
|
||||
printf "\e[0m"
|
||||
if test -z "$2"; then printf "\n"; fi
|
||||
}
|
||||
|
||||
tableheader() {
|
||||
subtitle "$1" "noreturn"
|
||||
}
|
||||
|
||||
italic() {
|
||||
|
@ -263,9 +268,26 @@ section_rgb_colors() {
|
|||
}
|
||||
|
||||
section_bright_colors() {
|
||||
title "Codes 90-97 and 100-107; Foreground and Background Bright Colors"
|
||||
title "Codes 90-97 and 100-107; Bright Colors"
|
||||
|
||||
printf 'TODO\n'
|
||||
printf "Codes 90 through 97 and 100 through 107 are used to access the alternate \"bright\" color palette.\n"
|
||||
printf "This allows you to access these colors regardless of whether the \"boldness\" attribute causes these colors to be displayed in your particular terminal.\n"
|
||||
printf "Codes 90 through 97 set the foreground color, whereas codes 100 through 107 set the background color.\n"
|
||||
newline
|
||||
|
||||
subtitle "A Table of Bright Colors"
|
||||
tableheader "Foreground"
|
||||
printf " "
|
||||
tableheader "Background"
|
||||
newline
|
||||
printf "\e[90m\\\e[90m Dark grey\e[0m \e[100m\\\e[100m Dark grey\e[0m\n"
|
||||
printf "\e[91m\\\e[91m Light red\e[0m \e[101m\\\e[101m Light red\e[0m\n"
|
||||
printf "\e[92m\\\e[92m Light green\e[0m \e[102m\\\e[102m Light green\e[0m\n"
|
||||
printf "\e[93m\\\e[93m Yellow\e[0m \e[103m\\\e[103m Yellow\e[0m\n"
|
||||
printf "\e[94m\\\e[94m Light blue\e[0m \e[104m\\\e[104m Light blue\e[0m\n"
|
||||
printf "\e[95m\\\e[95m Light purple\e[0m \e[105m\\\e[105m Light purple\e[0m\n"
|
||||
printf "\e[96m\\\e[96m Light cyan\e[0m \e[106m\\\e[106m Light cyan\e[0m\n"
|
||||
printf "\e[97m\\\e[97m White\e[0m \e[107m\\\e[107m White\e[0m\n"
|
||||
}
|
||||
|
||||
section_italics() {
|
||||
|
|
Loading…
Reference in New Issue