diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2018-03-28 22:33:39 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2018-03-28 22:33:39 -0400 |
commit | 93396d69eb71cb724d47dc927becf5a129baa168 (patch) | |
tree | 81b0ce0569f8d52b1cc387ecb72b31b67ca9c788 /initrd | |
parent | efd1e11475088284803f5db0f554f6ef2d0268f5 (diff) |
adding support for loading files throught script
Diffstat (limited to 'initrd')
-rw-r--r-- | initrd/calc | 8 | ||||
-rw-r--r-- | initrd/init | 11 |
2 files changed, 11 insertions, 8 deletions
diff --git a/initrd/calc b/initrd/calc new file mode 100644 index 0000000..7359f16 --- /dev/null +++ b/initrd/calc @@ -0,0 +1,8 @@ +while (1) { + print("> ") + input = gets() + answer = solve(input) + print("\n") + print(answer) + print("\n") +} diff --git a/initrd/init b/initrd/init index 7359f16..13e5876 100644 --- a/initrd/init +++ b/initrd/init @@ -1,8 +1,3 @@ -while (1) { - print("> ") - input = gets() - answer = solve(input) - print("\n") - print(answer) - print("\n") -} +choice = filemenu +print("\nChoice: ") +print(choice) |