Skip to content

Help with clink lua format #341

Answered by chrisant996
N6REJ asked this question in Q&A
Sep 10, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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, the 1 means "bold" (i.e. bright), 32 means "red foreground", and 40 means "black background".

Refer to ANSI escape codes for more info about escape codes.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@N6REJ
Comment options

Answer selected by chrisant996
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants