Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local filedir = ""
- local filedest = ""
- local confirm = false
- local install = false
- function text()
- term.setCursorPos(13, 7)
- print("this will create a startup.")
- term.setCursorPos(14, 8)
- print("do you want to continue?")
- end
- function confirmation()
- term.setCursorPos(18, 10)
- local event, key, isHeld = os.pullEvent("key")
- if key == keys.left then
- write(">Yes< No ")
- confirm = true
- elseif key == keys.right then
- write(" Yes >No<")
- confirm = false
- end
- end
- term.clear()
- term.setCursorPos(18, 10)
- print(" Yes >No<")
- while install == false do
- text()
- confirmation()
- local event, key, isHeld = os.pullEvent("key")
- if confirm and key == keys.enter then
- install = true
- end
- end
- fs.copy(filedir, filedest)
- term.clear()
- term.setCursorPos(1, 1)
- print("installed")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement