Fix display of escape sequences
This commit is contained in:
parent
052cbc1281
commit
fb7a7230e3
|
@ -61,7 +61,7 @@ section_disclaimers() {
|
||||||
section_anatomy() {
|
section_anatomy() {
|
||||||
title "Anatomy of an ANSI Escape Code"
|
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
|
thebookofcolors
|
||||||
printf '. The choice is arbitrary, but consistent throughout.\n'
|
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'
|
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'
|
||||||
|
|
Loading…
Reference in New Issue