diff options
Diffstat (limited to 'src/pOS/arch/x86/kernel/shell/cmds/clear.cpp')
-rw-r--r-- | src/pOS/arch/x86/kernel/shell/cmds/clear.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/pOS/arch/x86/kernel/shell/cmds/clear.cpp b/src/pOS/arch/x86/kernel/shell/cmds/clear.cpp index 1919a3a..871c59b 100644 --- a/src/pOS/arch/x86/kernel/shell/cmds/clear.cpp +++ b/src/pOS/arch/x86/kernel/shell/cmds/clear.cpp @@ -1,9 +1,18 @@ #include <kernel/shell/cmd.h> #include <kernel/tty.h> +#include <kernel/debug.h> -int CMD_Clear::execute(const char* args) +int CMD_Clear::execute() { - UNUSED_VARIABLE(args); + dbgprintf("args: "); + char* arg = strtok(NULL, " "); + do + { + dbgprintf("%s, ", arg); + arg = strtok(NULL, " "); + } while(arg); + dbgprintf("\n"); + TTY::tty_initialize(); return 0; } |