-
Notifications
You must be signed in to change notification settings - Fork 129
Description
Colorful.Console can only write to the console in 16 different colors (including the black that's used as the console's background, by default!) in a single console session. This is a limitation of the Windows console itself (ref: MSDN), and it's one that we weren't able to work our way around. If you know of a workaround, let us know!
You can use ANSI escape codes. They're supported in a bit less cases, but most of terminals (including cmd with a bit of work on client's side) support them.
ANSI escape codes reference: https://en.wikipedia.org/wiki/ANSI_escape_code.
You can see usage example in my simple console game: https://github.com/Dzhake/ConsoleFool/blob/479fde284ed169aa42ba18b4f4055a5b14ac2975/RGB.cs#L48C9-L51C10.
I know this project wasn't updated for 4 years, and probably you won't rewrite it to use ANSI instead, but I wanted to let you know :)