diff options
| author | James Barnett <noreply@jamesbarnett.xyz> | 2019-10-06 18:39:36 +0100 |
|---|---|---|
| committer | James Barnett <noreply@jamesbarnett.xyz> | 2019-10-06 18:39:36 +0100 |
| commit | 29478baf24532391cd94bd08d94cf867dee976e6 (patch) | |
| tree | 3127ae32572cd262c7283c6223b6e5712a07f91d /os/shell | |
| parent | e77b371fb0fc4e62fa727a340b2e322fa60ebcff (diff) | |
| download | tinyOS-29478baf24532391cd94bd08d94cf867dee976e6.tar.xz tinyOS-29478baf24532391cd94bd08d94cf867dee976e6.zip | |
Diffstat (limited to 'os/shell')
| -rw-r--r-- | os/shell/shell.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/os/shell/shell.c b/os/shell/shell.c index 4fb5488..615c824 100644 --- a/os/shell/shell.c +++ b/os/shell/shell.c @@ -1,7 +1,7 @@ #include "../../os/main.h" #include "../../kernel/gpu/text_mode/display.h" #include "../stdlib/sdtlib.h" -#include "../commands/echo.h" +#include "../commands/commands.h" #define CMD_BUFFER_SIZE 80 @@ -71,7 +71,13 @@ unsigned char* shell_parse_args() { void shell_exec_cmd(unsigned char* cmd_name, unsigned char* args) { // TODO lookup string to funciton pointer if (strcmp(cmd_name, "echo") == 0) { - echo(args); + cmd_echo(args); + } + else if(strcmp(cmd_name, "cf") == 0) { + cmd_cf(args); + } + else if(strcmp(cmd_name, "lf") == 0) { + cmd_lf(args); } else if (strcmp(cmd_name, "") != 0) { scrn_print(cmd_name); |