Terminal: Add support for tabs

This commit is contained in:
Bananymous 2025-06-06 16:41:06 +03:00
parent 5ad7d7edb1
commit 8ea0a67280
1 changed files with 5 additions and 0 deletions

View File

@ -687,6 +687,11 @@ Rectangle Terminal::putcodepoint(uint32_t codepoint)
case '\r':
m_cursor.x = 0;
break;
case '\t':
m_cursor.x++;
while (m_cursor.x % 8)
m_cursor.x++;
break;
case '\b':
if (m_cursor.x > 0)
m_cursor.x--;