Kernel: Add support for 8bit and 24bit ANSI SGR

This commit is contained in:
2025-04-23 22:03:53 +03:00
parent dabc3c6cc4
commit a8edb8870e
2 changed files with 59 additions and 8 deletions
+6 -2
View File
@@ -51,11 +51,15 @@ namespace Kernel
struct AnsiState
{
int32_t nums[2] { -1, -1 };
int32_t index { 0 };
static constexpr size_t max_nums = 5;
int32_t nums[max_nums] { -1, -1, -1, -1, -1 };
size_t index { 0 };
bool question { false };
};
BAN::Optional<TerminalDriver::Color> get_8bit_color();
BAN::Optional<TerminalDriver::Color> get_24bit_color();
struct UTF8State
{
uint32_t codepoint { 0 };