2024-11-06 22:03:59 -08:00
|
|
|
/*
|
2024-11-06 22:19:03 -08:00
|
|
|
* cls.h
|
2024-11-06 22:03:59 -08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef USER_SHELL_COMMANDS_CLS_H_
|
|
|
|
#define USER_SHELL_COMMANDS_CLS_H_
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void cons_cls(int argc, char **argv)
|
|
|
|
{
|
|
|
|
if (!argc) {
|
|
|
|
CONS_PRINT("...clears the screen. just try it.");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
CONS_PRINT("\x1B[2J\x1B[0;0H");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* USER_SHELL_COMMANDS_CLS_H_ */
|