Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- detect = shell.getRunningProgram()
- if detect == ("disk/verticalwrite") and fs.exists("verticalwrite") ~= true then
- shell.run("rom/programs/copy disk/verticalwrite verticalwrite")
- else
- end
- term.clear()
- term.setCursorPos(1,1)
- print("-----Welcome to Vertical Write! Click to exit!-----")
- term.setCursorPos(2,1)
- while true do
- event, param1, param2 = os.pullEvent()
- if event == "mouse_click" then
- term.clear()
- term.setCursorPos(20,10)
- textutils.slowPrint("Exiting.....")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- break
- elseif event == "char" and param1 ~= "14" or "221" then
- print("-------------------------"..param1.."-------------------------")
- currX, currY = term.getCursorPos()
- term.setCursorPos(1,1)
- write("-----Welcome to Vertical Write! Click to exit!-----")
- term.setCursorPos(currX, currY)
- elseif event == "char" and param1 == "14" or "211" then
- currX, currY = term.getCursorPos()
- currY = currY - 1
- term.setCursorPos(currX, currY)
- term.clearLine()
- else
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment