Help with clink lua format #341
-
We took over a project and the .lua for clink has us confused.
Our repo is at Any help will be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'm not sure if you're asking what ANSI escape codes are, or if you're asking what
In the code Refer to ANSI escape codes for more info about escape codes. |
Beta Was this translation helpful? Give feedback.
I'm not sure if you're asking what ANSI escape codes are, or if you're asking what
\x1b
means in Lua strings.\x1b
= hex 1b = decimal 27 = ESC, which is the ANSI escape character.\x1b[ ... m
is an escape code for Select Graphic Rendition, which controls colors and bold and underline and reverse video.In the code
\x1b[1;32;40m
, the1
means "bold" (i.e. bright),32
means "red foreground", and40
means "black background".Refer to ANSI escape codes for more info about escape codes.