Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ToDoList
- -- MrKarp 4/1/2016 "April Fools"
- -- Pop on and off items in a table to represent a editable todo list
- Table = {}
- Sides ={"top","bottom","right","left","front","back"}
- itemNum = 0
- -- Find Monitor
- for side=0, 5 do
- whatSide = peripheral.isPresent(Sides[side])
- if(whatSide=true) then
- monitor = peripheral.wrap(whatSide)
- write("Monitor Connected: "..whatSide)
- end
- end
- function ClearMon()
- monitor.clear()
- end
- function GetInput()
- write("Enter Item: ")
- input = read()
- table.insert(Table, input)
- itemNum = itemNUm + 1
- --monitor.write(itemNUm..": "..input)
- end
- function ClearItem()
- monitor.write("Delete Which Item #?: ")
- delInput = read()
- table.delete(Table, delInput)
- end
- function Display()
- for i=0, #Table do
- monitor.write(Table[i])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement