[*] Refactor kAnsiCheats

This commit is contained in:
Reece Wilson 2021-10-03 13:44:23 +01:00
parent feef9eac09
commit 6435eaf5fc

View File

@ -10,7 +10,7 @@
namespace Aurora::Console
{
static std::array<std::string, static_cast<size_t>(EAnsiColor::eCount)> AnsiCheats
static std::array<std::string, static_cast<size_t>(EAnsiColor::eCount)> kAnsiCheats
{
"\033[0;31m",
"\033[1;31m",
@ -51,7 +51,7 @@ namespace Aurora::Console
AuString ConsoleMessage::ToConsole() const
{
return fmt::format("{}[{}] {:<7} | {}{}", AnsiCheats[static_cast<size_t>(color)], StringifyTime(), GetWrappedTag(), line, AnsiCheats[static_cast<size_t>(EAnsiColor::eReset)]);
return fmt::format("{}[{}] {:<7} | {}{}", kAnsiCheats[static_cast<size_t>(color)], StringifyTime(), GetWrappedTag(), line, kAnsiCheats[static_cast<size_t>(EAnsiColor::eReset)]);
}
AuString ConsoleMessage::ToSimplified() const