解决换行时光标刷新后出现两个光标的问题
This commit is contained in:
parent
024b24e5ef
commit
e99d51e81f
|
@ -169,6 +169,7 @@ void tty_text_print(tty *ttyx, char *string, u32 color, u32 bgcolor)
|
|||
char c = *string;
|
||||
if (c == '\n')
|
||||
{ // 换行
|
||||
putchar(ttyx, ' ', 0, 0);
|
||||
newline(ttyx);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue