Fix escapes in demonstration codes

This commit is contained in:
The Magician 2023-11-05 19:31:50 +00:00
parent 8689d44e09
commit e08f55dd3f
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ section_anatomy() {
printf "\e[3m0x1B + [ + <zero or more numbers, separated by semicolons> + <a letter>\e[0m\n"
newline
printf "The CSI sequence we've gone over already. The easiest way to think about this is that the letter is the name of a function, and the semicolon-delimited numbers are the arguments to said function.\n"
printf "By this model of thinking about escape sequences like function calls means you would read \"\\e[0;1;34m\" as m(0, 1, 34), and \"\\e[A\" as A().\n"
printf "By this model of thinking about escape sequences like function calls means you would read \"\\\e[0;1;34m\" as m(0, 1, 34), and \"\\\e[A\" as A().\n"
newline
printf "The \"m\" function is the one we're interested in. This is the \"SGR\", or \"Select Graphics Rendition\", code, and it tells the terminal to activate color and other text effects, which is what we're interested in.\n"