From e77b371fb0fc4e62fa727a340b2e322fa60ebcff Mon Sep 17 00:00:00 2001 From: James Barnett Date: Sun, 6 Oct 2019 15:53:52 +0100 Subject: Add command parsing and echo command --- os/commands/echo.c | 5 +++++ os/commands/echo.h | 1 + 2 files changed, 6 insertions(+) create mode 100644 os/commands/echo.c create mode 100644 os/commands/echo.h (limited to 'os/commands') diff --git a/os/commands/echo.c b/os/commands/echo.c new file mode 100644 index 0000000..669003e --- /dev/null +++ b/os/commands/echo.c @@ -0,0 +1,5 @@ +#include "../../kernel/gpu/text_mode/display.h" + +void echo(char *args) { + scrn_println(args); +} \ No newline at end of file diff --git a/os/commands/echo.h b/os/commands/echo.h new file mode 100644 index 0000000..db62a4f --- /dev/null +++ b/os/commands/echo.h @@ -0,0 +1 @@ +void echo(char *args); \ No newline at end of file -- cgit v1.2.3