Console has tabs
This commit is contained in:
parent
4d7a8653be
commit
42ac9ebe86
2 changed files with 10 additions and 0 deletions
|
@ -59,6 +59,15 @@ Console::writeChar(char c)
|
|||
mCursor.row = 0;
|
||||
}
|
||||
break;
|
||||
case '\t':
|
||||
mCursor.col += 8;
|
||||
if (mCursor.col >= Console::Width) {
|
||||
if (++mCursor.row == Console::Height) {
|
||||
mCursor.row = 0;
|
||||
}
|
||||
mCursor.col %= Console::Width;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
putEntryAt(mCursor.col, mCursor.row, c, mColor);
|
||||
if (++mCursor.col == Console::Width) {
|
||||
|
|
|
@ -19,6 +19,7 @@ kearly()
|
|||
console.clear(kernel::Console::Color::Blue);
|
||||
console.writeString("Hello world!\n");
|
||||
console.writeString("a\nb\nc\n");
|
||||
console.writeString("abc\tdef\tghi\tjkl\tmno\n");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue