[*] Refactor kAnsiCheats
This commit is contained in:
parent
feef9eac09
commit
6435eaf5fc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user