mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-22 07:56:33 -05:00
When clearing the screen move the cursor to the top
This commit is contained in:
parent
bf1f7dda7c
commit
6da3469fe7
3 changed files with 9 additions and 3 deletions
|
|
@ -291,6 +291,9 @@ void os_clear(void)
|
|||
coord.X = 0;
|
||||
coord.Y = 0;
|
||||
FillConsoleOutputCharacterA(console, ' ', screen.dwSize.X * screen.dwSize.Y, coord, &written);
|
||||
|
||||
/* set the cursor at the top left corner */
|
||||
SetConsoleCursorPosition(console, coord);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue