From e08f55dd3f0e16560ab804c8224099da0b1faedf Mon Sep 17 00:00:00 2001 From: The Magician Date: Sun, 5 Nov 2023 19:31:50 +0000 Subject: [PATCH] Fix escapes in demonstration codes --- thebookofcolors | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thebookofcolors b/thebookofcolors index b32210a..c6d34a7 100755 --- a/thebookofcolors +++ b/thebookofcolors @@ -72,7 +72,7 @@ section_anatomy() { printf "\e[3m0x1B + [ + + \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"