From 0b73451502e8c0d70d11874515d393be06d43ae7 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Wed, 6 May 2020 17:41:08 -0700 Subject: [PATCH] Linux color fix --- BeefLibs/corlib/src/Console.bf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BeefLibs/corlib/src/Console.bf b/BeefLibs/corlib/src/Console.bf index f081a298..41f651cf 100644 --- a/BeefLibs/corlib/src/Console.bf +++ b/BeefLibs/corlib/src/Console.bf @@ -204,8 +204,8 @@ namespace System let bgColor = BackgroundColor.ConsoleTextAttribute; SetConsoleTextAttribute(handle, bgColor * 16 + fgColor); #else - Write("\x1B[{}m", ForegroundColor.ToAnsi()); - Write("\x1B[{}m", BackgroundColor.ToAnsi() + 10); + Write("\x1B[{}m", ForegroundColor.AnsiCode); + Write("\x1B[{}m", BackgroundColor.AnsiCode + 10); #endif } }