Fixed bug; added unit tests

This commit is contained in:
Tig
2024-05-08 10:10:50 -06:00
parent febf267640
commit b7f3a85203
3 changed files with 57 additions and 57 deletions

View File

@@ -833,7 +833,7 @@ internal class CursesDriver : ConsoleDriver
/// <returns></returns>
private static Attribute MakeColor (short foreground, short background)
{
var v = (short)(foreground | (background << 4));
var v = (short)((ushort)foreground | (background << 4));
// TODO: for TrueColor - Use InitExtendedPair
Curses.InitColorPair (v, foreground, background);