Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local y = 1
- local listNum = 1
- local uInput = ""
- term.clear()
- term.setCursorPos(1,1)
- write("To Do List, by JaviTech")
- y = y + 1
- while true do
- term.setCursorPos(1,y)
- uInput = read()
- local tempX, tempY = term.getCursorPos()
- term.setCursorPos(tempX, tempY-1)
- term.clearLine()
- write(listNum .. ". " .. uInput)
- tempX, tempY = term.getCursorPos()
- y = tempY + 1
- listNum = listNum + 1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement