diff options
author | Benji Dial <benji6283@gmail.com> | 2020-09-13 22:06:40 -0400 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2020-09-13 22:06:40 -0400 |
commit | 44d29a33df81ac07163d5146a9e43a0c4fb80af0 (patch) | |
tree | 94d4fb506a80d73cb53dc9ea66dfc952d7a9432a /src/user/highway/highway.c | |
parent | 143156f63e2448733f1a35a74e629fe0ae9bb567 (diff) | |
download | portland-os-44d29a33df81ac07163d5146a9e43a0c4fb80af0.tar.gz |
new shell
Diffstat (limited to 'src/user/highway/highway.c')
-rw-r--r-- | src/user/highway/highway.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/user/highway/highway.c b/src/user/highway/highway.c deleted file mode 100644 index 7e78472..0000000 --- a/src/user/highway/highway.c +++ /dev/null @@ -1,24 +0,0 @@ -#include <knob/user.h> -#include <knob/task.h> -#include <knob/block.h> - -//TODO: load a user environment file containing a PATH-like setting. -//TODO: have an active disk and/or directory - -void main() { - char path_buf[1024 + 4] = "bin/"; - char *const line_buf = path_buf + 4; - - tell_user_sz("Highway, Portland Command Shell, started.\n" - "Type \"exit\" to quit.\n"); - yield_task(); - - while (1) { - tell_user_sz("> "); - ask_user_line_sz(line_buf, 1023); - if (blockequ(line_buf, "exit", 5)) - return; - if (!try_run_command_blocking(path_buf)) - tell_user_sz("An error occured trying to run that command.\n"); - } -}
\ No newline at end of file |