mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Linux color fix
This commit is contained in:
parent
585b856ff3
commit
0b73451502
1 changed files with 2 additions and 2 deletions
|
@ -204,8 +204,8 @@ namespace System
|
||||||
let bgColor = BackgroundColor.ConsoleTextAttribute;
|
let bgColor = BackgroundColor.ConsoleTextAttribute;
|
||||||
SetConsoleTextAttribute(handle, bgColor * 16 + fgColor);
|
SetConsoleTextAttribute(handle, bgColor * 16 + fgColor);
|
||||||
#else
|
#else
|
||||||
Write("\x1B[{}m", ForegroundColor.ToAnsi());
|
Write("\x1B[{}m", ForegroundColor.AnsiCode);
|
||||||
Write("\x1B[{}m", BackgroundColor.ToAnsi() + 10);
|
Write("\x1B[{}m", BackgroundColor.AnsiCode + 10);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue