Terminal: Add support for tabs
This commit is contained in:
parent
5ad7d7edb1
commit
8ea0a67280
|
@ -687,6 +687,11 @@ Rectangle Terminal::putcodepoint(uint32_t codepoint)
|
||||||
case '\r':
|
case '\r':
|
||||||
m_cursor.x = 0;
|
m_cursor.x = 0;
|
||||||
break;
|
break;
|
||||||
|
case '\t':
|
||||||
|
m_cursor.x++;
|
||||||
|
while (m_cursor.x % 8)
|
||||||
|
m_cursor.x++;
|
||||||
|
break;
|
||||||
case '\b':
|
case '\b':
|
||||||
if (m_cursor.x > 0)
|
if (m_cursor.x > 0)
|
||||||
m_cursor.x--;
|
m_cursor.x--;
|
||||||
|
|
Loading…
Reference in New Issue