Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --server
- local com = require('component')
- local event = require('event')
- local keyboard = require('keyboard')
- local term = require('term')
- local serialization = require('serialization')
- local internet = com.tunnel
- local shell = require "shell"
- local text = ""
- status=0
- arg,op=shell.parse(...)
- name="server"
- function set_msg(msg)
- internet.send(msg)
- end
- term.clear()
- while true do
- term.setCursor(1,25)
- local msg=tostring(io.read())
- set_msg(msg)
- local _,_,_,_,_,cmsg=event.pull("modem_message")
- print("c"..":"..cmsg)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement