Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back")
- local CurrentPath = ""
- local done = false
- local FirstInstance = true
- local Entry = ""
- local function newLine()
- local CX, CY = term.getCursorPos()
- term.setCursorPos(1,CY +1)
- end
- term.write("Welcome to")
- newLine()
- term.write("TaskMGR v1.0")
- newLine()
- newLine()
- sleep(1)
- while redstone.getInput("left") == false do
- done = false
- CurrentPath = ""
- while done == false do
- term.clear()
- term.setCursorPos(1,1)
- term.write(CurrentPath)
- newLine()
- term.write("---------------")
- newLine()
- Entry = read()
- if string.match(Entry , "exit") or string.match(Entry , "Exit") then
- return
- end
- if string.match(Entry , "done") or string.match(Entry , "Done") or string.match(Entry , "!") then
- FirstInstance = true
- done = true
- rednet.broadcast(CurrentPath)
- redstone.setOutput("top",true)
- sleep(0.7)
- redstone.setOutput("top",false)
- end
- if FirstInstance == true then
- CurrentPath = Entry
- FirstInstance = false
- else
- CurrentPath = CurrentPath .. "." .. Entry
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment