Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- term.setCursorPos(1,1)
- term.setBackgroundColor(colors.black)
- term.clear()
- print("Please enter program to run:")
- local programToRun = read()
- print("Please enter window X pos:")
- local windowXpos = read()
- print("Please enter window Y pos:")
- local windowYpos = read()
- if tonumber(windowXpos) == nil then
- error("windowXpos is invalid")
- end
- if tonumber(windowYpos) == nil then
- error("windowYpos is invalid")
- end
- if not fs.exists(programToRun) then
- error("programToRun is invalid")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement