sc8-gat-stand/gat_stand_fw/user/console/commands/cls.h

23 lines
308 B
C
Raw Normal View History

/*
* cls.h
*/
#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_ */