toaruos/apps/reset.c

22 lines
473 B
C

/**
* @brief reset - make the terminal sane, and clear it
*
* Also clears scrollback!
*
* @copyright
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2018-2021 K. Lange
*/
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char * argv[]) {
system("stty sane");
system("clear");
/* Clear scrollback as well */
printf("\033[3J");
fflush(stdout);
return 0;
}