Fix display of escape sequences

This commit is contained in:
The Magician 2023-11-05 18:59:15 +00:00
parent 052cbc1281
commit fb7a7230e3
1 changed files with 1 additions and 1 deletions

View File

@ -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'