mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 15:24:30 +01:00
Optionally use terminal colour codes
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "../thirdparty/linenoise.hpp"
|
||||
#include "../OpenRCT2.h"
|
||||
#include "../platform/Platform2.h"
|
||||
#include "Console.h"
|
||||
|
||||
void StdInOutConsole::Start()
|
||||
@@ -80,7 +81,7 @@ void StdInOutConsole::WriteLine(const std::string &s, uint32 colourFormat)
|
||||
}
|
||||
}
|
||||
|
||||
if (formatBegin.empty())
|
||||
if (formatBegin.empty() || !Platform::IsColourTerminalSupported())
|
||||
{
|
||||
std::printf("%s\n", s.c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user