Add newlines around SGR command syntax explanation

This commit is contained in:
The Magician 2023-11-05 19:00:26 +00:00
parent fb7a7230e3
commit 843de6337c
1 changed files with 3 additions and 1 deletions

View File

@ -68,7 +68,9 @@ section_anatomy() {
newline newline
printf 'Overall, a control sequence is formatted like so:\n' printf 'Overall, a control sequence is formatted like so:\n'
printf '0x1B + "[" + <zero or more numbers, separated by semicolons> + <a letter>\n' newline
printf '0x1B + [ + <zero or more numbers, separated by semicolons> + <a letter>\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 '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 newline