Fix table headings and add other subtitles
This commit is contained in:
parent
4ffe3a01eb
commit
21549cf023
|
@ -113,6 +113,7 @@ section_regular_colors() {
|
||||||
printf "These colors and their respective escape codes are shown in the following table:\n"
|
printf "These colors and their respective escape codes are shown in the following table:\n"
|
||||||
newline
|
newline
|
||||||
|
|
||||||
|
subtitle "A Listing of Basic Colors"
|
||||||
printf "\e[30;47m\\\e[30m Black\e[0m (shown on light grey background to aid visibility)\n"
|
printf "\e[30;47m\\\e[30m Black\e[0m (shown on light grey background to aid visibility)\n"
|
||||||
printf "\e[31m\\\e[31m Red\e[0m\n"
|
printf "\e[31m\\\e[31m Red\e[0m\n"
|
||||||
printf "\e[32m\\\e[32m Green\e[0m\n"
|
printf "\e[32m\\\e[32m Green\e[0m\n"
|
||||||
|
@ -155,7 +156,9 @@ section_bold_colors() {
|
||||||
printf "The SGR attribute \`1\` enables \"boldness\".\n"
|
printf "The SGR attribute \`1\` enables \"boldness\".\n"
|
||||||
printf "The result of using this attribute is highly implementation-dependent -- depending on the terminal used, this can either change the color to a \"bright\" version of the standard color, change the font face to bold, or both.\n"
|
printf "The result of using this attribute is highly implementation-dependent -- depending on the terminal used, this can either change the color to a \"bright\" version of the standard color, change the font face to bold, or both.\n"
|
||||||
printf "Here is a table of the colors with the boldness attribute enabled, along with their alternate names:\n"
|
printf "Here is a table of the colors with the boldness attribute enabled, along with their alternate names:\n"
|
||||||
|
newline
|
||||||
|
|
||||||
|
subtitle "A Listing of Basic Colors with Bold Text"
|
||||||
printf "\e[1;30;47m\\\e[1;30m Dark grey\e[0m (shown on light grey)\n"
|
printf "\e[1;30;47m\\\e[1;30m Dark grey\e[0m (shown on light grey)\n"
|
||||||
printf "\e[1;31m\\\e[1;31m Light red\e[0m\n"
|
printf "\e[1;31m\\\e[1;31m Light red\e[0m\n"
|
||||||
printf "\e[1;32m\\\e[1;32m Light green\e[0m\n"
|
printf "\e[1;32m\\\e[1;32m Light green\e[0m\n"
|
||||||
|
@ -171,9 +174,12 @@ section_background_colors() {
|
||||||
|
|
||||||
printf "Codes 40 through 47 are used to set the background color, as opposed to 30-37 being used to set the foreground (i.e. text) color.\n"
|
printf "Codes 40 through 47 are used to set the background color, as opposed to 30-37 being used to set the foreground (i.e. text) color.\n"
|
||||||
printf "40 through 47 select from the same eight-color palette as codes 30 through 37. Whether the \"boldness\" attribute will set the background color to the alternate \"bright\" color is implementation-dependent; both are shown here so you can see whether your terminal supports it.\n"
|
printf "40 through 47 select from the same eight-color palette as codes 30 through 37. Whether the \"boldness\" attribute will set the background color to the alternate \"bright\" color is implementation-dependent; both are shown here so you can see whether your terminal supports it.\n"
|
||||||
subtitle "Regular"
|
newline
|
||||||
|
|
||||||
|
subtitle "A Table of Background Colors"
|
||||||
|
tableheader "Regular"
|
||||||
printf " "
|
printf " "
|
||||||
subtitle "Bold"
|
tableheader "Bold"
|
||||||
newline
|
newline
|
||||||
printf "\e[37;40m\\\e[40m Black\e[0m \e[1;37;40m\\\e[1;40m Dark grey\e[0m\n"
|
printf "\e[37;40m\\\e[40m Black\e[0m \e[1;37;40m\\\e[1;40m Dark grey\e[0m\n"
|
||||||
printf "\e[41m\\\e[41m Red\e[0m \e[1;41m\\\e[1;41m Light red\e[0m\n"
|
printf "\e[41m\\\e[41m Red\e[0m \e[1;41m\\\e[1;41m Light red\e[0m\n"
|
||||||
|
|
Loading…
Reference in New Issue