From d73ce9ed72680953d124c939130b9e8676db5fbc Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 9 Feb 2025 19:06:00 +0100 Subject: [PATCH] NetCon: fix color console regression This is an old bug, since the net console is a console application, we should only call Console_ColorInit() here. Color is now fully optional (with -ansicolor) and works. --- src/netconsole/netconsole.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/netconsole/netconsole.cpp b/src/netconsole/netconsole.cpp index 4b891937..d5d8b12b 100644 --- a/src/netconsole/netconsole.cpp +++ b/src/netconsole/netconsole.cpp @@ -172,8 +172,10 @@ BOOL WINAPI CNetCon::CloseHandler(DWORD eventCode) //----------------------------------------------------------------------------- void CNetCon::TermSetup(const bool bAnsiColor) { + if (bAnsiColor) + Console_ColorInit(); + SpdLog_Init(bAnsiColor); - Console_Init(bAnsiColor); // Handle ctrl+x or X close events, give the application time to shutdown // properly and flush all logging buffers.