解决换行时光标刷新后出现两个光标的问题

This commit is contained in:
pointer-to-bios 2024-02-04 20:49:20 +08:00
parent 024b24e5ef
commit e99d51e81f
1 changed files with 1 additions and 0 deletions

View File

@ -169,6 +169,7 @@ void tty_text_print(tty *ttyx, char *string, u32 color, u32 bgcolor)
char c = *string; char c = *string;
if (c == '\n') if (c == '\n')
{ // 换行 { // 换行
putchar(ttyx, ' ', 0, 0);
newline(ttyx); newline(ttyx);
continue; continue;
} }