Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function drawArrow()
- term.setTextColor(colors.yellow)
- write("> ")
- term.setTextColor(colors.black)
- end
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- term.clear()
- print("Please input the modem side.")
- term.setTextColor(colors.red)
- write("> ")
- term.setTextColor(colors.black)
- local side = read()
- rednet.open(side)
- print("[1] Send")
- print("")
- print("[2] Read")
- drawArrow()
- local option = read()
- if option == 1 then
- shell.run(".Send")
- elseif option == 2 then
- shell.run(".Read")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement