Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mon = peripheral.wrap("left")
- local modem = peripheral.wrap("bottom")
- local x1, y1 = mon.getSize()
- function gotoln()
- local x, y = mon.getCursorPos()
- if y1 == y then
- mon.scroll(1)
- mon.setCursorPos(1, y)
- else
- mon.setCursorPos(1, y+1)
- end
- end
- while true do
- mon.clear()
- term.clear()
- print("Channel où on envoie : ")
- chanrec = tonumber(read())
- modem.transmit(chanrec, 1, "C'est quoi ton QRA ?")
- mon.write("On envoie sur le channel : "..chanrec)
- gotoln()
- gotoln()
- gotoln()
- write("Appuyez sur ENTREE pour continuer ! ")
- toto = read()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement