From ca45bb719f4d80a7e48388bf411a75ffbfb14f6b Mon Sep 17 00:00:00 2001 From: The Magician Date: Tue, 7 Nov 2023 15:40:47 +0000 Subject: [PATCH] Add section on strikethrough --- thebookofcolors | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/thebookofcolors b/thebookofcolors index 429a387..16cf489 100755 --- a/thebookofcolors +++ b/thebookofcolors @@ -426,7 +426,24 @@ section_conceal() { section_strikethrough() { title "Code 9; Strikethrough" - printf "TODO\n" + printf "Code 9 enables strikethrough.\n" + printf "This draws a horizontal line through the (vertical) center of the text, resulting in text which looks as if it had been \"crossed out\" if written by hand.\n" + printf "Note that as with underscores, the strikethrough line is always drawn in the foreground color:\n" + newline + + subtitle "A Table of Strikethroughs" + tableheader "Foreground" + printf " " + tableheader "Background" + newline + printf "\e[9;30m\\\e[9;30m Black\e[0m \e[9;40m\\\e[9;40m Black\e[0m\n" + printf "\e[9;31m\\\e[9;31m Red\e[0m \e[9;41m\\\e[9;41m Red\e[0m\n" + printf "\e[9;32m\\\e[9;32m Green\e[0m \e[9;42m\\\e[9;42m Green\e[0m\n" + printf "\e[9;33m\\\e[9;33m Brown\e[0m \e[9;43m\\\e[9;43m Brown\e[0m\n" + printf "\e[9;34m\\\e[9;34m Blue\e[0m \e[9;44m\\\e[9;44m Blue\e[0m\n" + printf "\e[9;35m\\\e[9;35m Purple\e[0m \e[9;45m\\\e[9;45m Purple\e[0m\n" + printf "\e[9;36m\\\e[9;36m Cyan\e[0m \e[9;46m\\\e[9;46m Cyan\e[0m\n" + printf "\e[9;37m\\\e[9;37m Light grey\e[0m \e[9;47m\\\e[9;47m Light grey\e[0m\n" } section_using_escape_sequences_in_shell_prompt() {