Terminal: Implement ANSI CSI A, B, b, d, @

This commit is contained in:
2025-04-17 23:16:22 +03:00
parent ebd00b1eb2
commit 4409d0f03f
2 changed files with 97 additions and 50 deletions

View File

@@ -37,6 +37,7 @@ public:
private:
void handle_sgr();
Rectangle handle_csi(char ch);
Rectangle putcodepoint(uint32_t codepoint);
Rectangle putchar(uint8_t ch);
bool read_shell();
@@ -91,6 +92,8 @@ private:
uint8_t m_utf8_index { 0 };
uint8_t m_utf8_bytes[4] { };
uint32_t m_last_graphic_char { 0 };
Cursor m_saved_cursor { 0, 0 };
uint32_t m_fg_color { 0 };
uint32_t m_bg_color { 0 };