重构内存分配器、增加中断支持、整理rust运行时环境 #4

Merged
pointer-to-bios merged 39 commits from downstream into main 2024-04-11 00:36:14 +08:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit 9b9fcc87cf - Show all commits

View File

@ -175,17 +175,20 @@ void tty_text_print(tty *ttyx, char *string, u32 color, u32 bgcolor)
}
else if (c == '\t')
{ // 水平制表符
putchar(ttyx, ' ', 0, 0);
ttyx->text.column += 8;
ttyx->text.column -= ttyx->text.column % 8;
continue;
}
else if (c == '\r')
{ // 回到行首
putchar(ttyx, ' ', 0, 0);
ttyx->text.column = 0;
continue;
}
else if (c == '\v')
{ // 垂直制表符
putchar(ttyx, ' ', 0, 0);
ttyx->text.line++;
if (ttyx->text.line == ttyx->text.height)
{