1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Linux color fix

This commit is contained in:
Brian Fiete 2020-05-06 17:41:08 -07:00
parent 585b856ff3
commit 0b73451502

View file

@ -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
}
}