mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04: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
|
|
@ -1228,8 +1228,9 @@ void os_abort(void)
|
|||
|
||||
void os_clear(void)
|
||||
{
|
||||
/* ANSI code for clear screen */
|
||||
printf("\033[2J");
|
||||
/* ANSI codes */
|
||||
printf("\033[H"); /* cursor at topleft */
|
||||
printf("\033[2J"); /* clear screen */
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue