Kernel: Implement ANSI SGR 7 to invert colors

This allows vim's visual selection to show up
This commit is contained in:
Bananymous 2024-09-26 15:08:11 +03:00
parent 57ae74f908
commit b89fc3fe87
1 changed files with 4 additions and 0 deletions

View File

@ -121,6 +121,10 @@ namespace Kernel
m_background = TerminalColor::BLACK; m_background = TerminalColor::BLACK;
break; break;
case 7:
BAN::swap(m_foreground, m_background);
break;
case 30: m_foreground = TerminalColor::BLACK; break; case 30: m_foreground = TerminalColor::BLACK; break;
case 31: m_foreground = TerminalColor::RED; break; case 31: m_foreground = TerminalColor::RED; break;
case 32: m_foreground = TerminalColor::GREEN; break; case 32: m_foreground = TerminalColor::GREEN; break;