From fb7a7230e32f67f2b6555f9580532696ba8dc3aa Mon Sep 17 00:00:00 2001 From: The Magician Date: Sun, 5 Nov 2023 18:59:15 +0000 Subject: [PATCH] Fix display of escape sequences --- thebookofcolors | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thebookofcolors b/thebookofcolors index c046d7e..0c15761 100755 --- a/thebookofcolors +++ b/thebookofcolors @@ -61,7 +61,7 @@ section_disclaimers() { section_anatomy() { title "Anatomy of an ANSI Escape Code" - printf 'Escape codes begin with `\e`, `\033`, or `\x1b`. These are all three different escape sequences which insert the ASCII character 27, or ESC. (This is why they''re called ANSI "escape" codes, because they begin with a literal escape character). The syntax `\e` is used throughout ' + printf 'Escape codes begin with `\\e`, `\\033`, or `\\x1b`. These are all three different escape sequences which insert the ASCII character 27, or ESC. (This is why they''re called ANSI "escape" codes, because they begin with a literal escape character). The syntax `\\e` is used throughout ' thebookofcolors printf '. The choice is arbitrary, but consistent throughout.\n' printf 'The next character is a `[`. This combination of characters, an escape followed by an open bracket, is called the "CSI", or "Control Sequence Introducer", which indicates the start of a control code.\n'