forked from Bananymous/banan-os
Terminal: Add support for tabs
This commit is contained in:
@@ -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--;
|
||||||
|
|||||||
Reference in New Issue
Block a user