Add command-line options to force-enable/disable color

`-forcecolor` will force color to be on. `-nocolor` will force color to
be off.

And just because I'm a nice person, I've also added British versions of
those flags. As a treat.
This commit is contained in:
Misa
2021-09-01 13:28:51 -07:00
committed by Misa Elizabeth Kai
parent ac85f57441
commit c68a274c4f
3 changed files with 15 additions and 0 deletions

View File

@@ -47,6 +47,11 @@ void vlog_init(void)
}
}
void vlog_toggle_color(const int enable_color)
{
color_enabled = enable_color;
}
int vlog_info(const char* text, ...)
{
va_list list;