From 843de6337cd1cb1dc81201eb8ddd4af55bcfe97e Mon Sep 17 00:00:00 2001 From: The Magician Date: Sun, 5 Nov 2023 19:00:26 +0000 Subject: [PATCH] Add newlines around SGR command syntax explanation --- thebookofcolors | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/thebookofcolors b/thebookofcolors index 0c15761..2e975d7 100755 --- a/thebookofcolors +++ b/thebookofcolors @@ -68,7 +68,9 @@ section_anatomy() { newline printf 'Overall, a control sequence is formatted like so:\n' - printf '0x1B + "[" + + \n' + newline + printf '0x1B + [ + + \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' newline