Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Alternative shell from CraftOS shell
- termutils = {}
- termutils.clear = function()
- term.clear()
- term.setCursorPos(1,1)
- end
- termutils.clearColor = function()
- term.setTextColor(colors.white)
- term.setBackgroundColor(colors.black)
- end
- function input()
- term.setTextColor(colors.blue)
- local dir = shell.dir().."/"..">"
- write(dir)
- termutils.clearColor()
- command = io.read()
- end
- termutils.clear()
- print("DevShell by WattDev(OR WHOEVER AM I) V1.0")
- while true do
- input()
- shell.run(command)
- end
Advertisement
Add Comment
Please, Sign In to add comment