diff --git a/Capy64/Assets/Lua/bin/hello.lua b/Capy64/Assets/Lua/bin/hello.lua new file mode 100644 index 0000000..1385fe3 --- /dev/null +++ b/Capy64/Assets/Lua/bin/hello.lua @@ -0,0 +1 @@ +print("Hello, world!") \ No newline at end of file diff --git a/Capy64/Assets/Lua/bin/shell.lua b/Capy64/Assets/Lua/bin/shell.lua new file mode 100644 index 0000000..a2fcf49 --- /dev/null +++ b/Capy64/Assets/Lua/bin/shell.lua @@ -0,0 +1,32 @@ +local term = require("term") +local colors = require("colors") +local event = require("event") +local io = require("io") + +local shell = {} + +shell.path = "/bin/?.lua" + +function shell.getDir() + +end + +function shell.setDir(path) + +end + +function shell.resolve(path) + +end + +function shell.run(path, args) + +end + + +while true do + term.setForeground(colors.yellow) + write("$ ") + term.setForeground(colors.white) + local line = io.read() +end \ No newline at end of file