解决换行时光标刷新后出现两个光标的问题
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;
|
char c = *string;
|
||||||
if (c == '\n')
|
if (c == '\n')
|
||||||
{ // 换行
|
{ // 换行
|
||||||
|
putchar(ttyx, ' ', 0, 0);
|
||||||
newline(ttyx);
|
newline(ttyx);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue