Add section on strikethrough

This commit is contained in:
The Magician 2023-11-07 15:40:47 +00:00
parent 8fc2e23773
commit ca45bb719f
1 changed files with 18 additions and 1 deletions

View File

@ -426,7 +426,24 @@ section_conceal() {
section_strikethrough() { section_strikethrough() {
title "Code 9; 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() { section_using_escape_sequences_in_shell_prompt() {