From 7e7c3a1bb3298181f850a68d02a829a951dc2ea4 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 9 Aug 2024 14:07:50 +0300 Subject: [PATCH] Kernel: VirtualTTY now handles dark colors I have seemingly forgot to add these before --- kernel/kernel/Terminal/VirtualTTY.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/kernel/kernel/Terminal/VirtualTTY.cpp b/kernel/kernel/Terminal/VirtualTTY.cpp index 7b6bbb2a..b4279c44 100644 --- a/kernel/kernel/Terminal/VirtualTTY.cpp +++ b/kernel/kernel/Terminal/VirtualTTY.cpp @@ -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; } }