How do I add color to my
for my name genarator?
Can anyone with C++ experience please help me? Thanks!
@RepelDown If you want, I had an old function for coloring that I used in one of my HTTP servers for color-coding stuff like errors vs normal messages.
(green was good, red was an error)
Just moved the function into a Repl:
It takes wide strings, not ASCII strings.
It is also probably a bit advanced since it uses a template, but hopefully it isn't too complicated.
It takes three template arguments, r for red, g for green, and b for blue.
They all must be constants between
Look into ASNI codes.
Repl uses a Linux VM, so you can color with them.
They often start with the
Esc character (escaped, of course).
\x1B. and a left bracket
Each one corresponds to a separate color, and there is an ending sequence (think it's
There is no language-level support for this stuff, it's just platform-specific monitor codes.