Kernel: VirtualTTY now handles dark colors

I have seemingly forgot to add these before
This commit is contained in:
Bananymous 2024-08-09 14:07:50 +03:00
parent 3b23458ecc
commit 7e7c3a1bb3
1 changed files with 18 additions and 0 deletions

View File

@ -139,6 +139,24 @@ namespace Kernel
case 45: m_background = TerminalColor::BRIGHT_MAGENTA; break;
case 46: m_background = TerminalColor::BRIGHT_CYAN; break;
case 47: m_background = TerminalColor::BRIGHT_WHITE; break;
case 90: m_foreground = TerminalColor::BLACK; break;
case 91: m_foreground = TerminalColor::RED; break;
case 92: m_foreground = TerminalColor::GREEN; break;
case 93: m_foreground = TerminalColor::YELLOW; break;
case 94: m_foreground = TerminalColor::BLUE; break;
case 95: m_foreground = TerminalColor::MAGENTA; break;
case 96: m_foreground = TerminalColor::CYAN; break;
case 97: m_foreground = TerminalColor::WHITE; break;
case 100: m_background = TerminalColor::BLACK; break;
case 101: m_background = TerminalColor::RED; break;
case 102: m_background = TerminalColor::GREEN; break;
case 103: m_background = TerminalColor::YELLOW; break;
case 104: m_background = TerminalColor::BLUE; break;
case 105: m_background = TerminalColor::MAGENTA; break;
case 106: m_background = TerminalColor::CYAN; break;
case 107: m_background = TerminalColor::WHITE; break;
}
}