The top() function just keeps the top text always there, send() is self-explanatory.
Any help is appreciated. Thanks!
Posted 22 June 2014 - 02:33 AM
Posted 22 June 2014 - 03:32 AM
Posted 22 June 2014 - 04:12 AM
Bomb Bloke, on 22 June 2014 - 03:32 AM, said:
Posted 22 June 2014 - 04:56 AM
metron80, on 22 June 2014 - 04:12 AM, said:
metron80, on 22 June 2014 - 04:12 AM, said:
local function getIncoming() while true do local event, param1, param2, param3 = os.pullEvent() local day = os.day() local time = textutils.formatTime(os.time(), true) printing = day.." | "..time.." | \""..param2.."\" | "..param1 local oldx, oldy = term.getCursorPos() print(printing) term.setCursorPos(oldx,oldy) end end local function getOutgoing() local oldx, oldy = term.getCursorPos() term.setCursorPos(1,19) input = read() rednet.broadcast(input) term.setCursorPos(1,18) term.clearLine() term.setCursorPos(oldx,oldy) end parallel.waitForAny(getOutgoing,getIncoming)
Posted 22 June 2014 - 06:47 PM
Bomb Bloke, on 22 June 2014 - 04:56 AM, said:
Bomb Bloke' time stamp='1403413007 said:
local function getIncoming() while true do local event, param1, param2, param3 = os.pullEvent() local day = os.day() local time = textutils.formatTime(os.time(), true) printing = day.." | "..time.." | \""..param2.."\" | "..param1 local oldx, oldy = term.getCursorPos() print(printing) term.setCursorPos(oldx,oldy) end end local function getOutgoing() local oldx, oldy = term.getCursorPos() term.setCursorPos(1,19) input = read() rednet.broadcast(input) term.setCursorPos(1,18) term.clearLine() term.setCursorPos(oldx,oldy) end parallel.waitForAny(getOutgoing,getIncoming)
Edited by metron80, 22 June 2014 - 06:55 PM.
Posted 22 June 2014 - 10:49 PM
metron80, on 22 June 2014 - 06:47 PM, said:
print("Rednet Broadcast Receiver Press \"S\" to Send") -- 1
print("Monitering All Rednet Since Day 316.") -- 2
print("Format: \"day | time | message | id\"") -- 3
print("===================================================") -- 4
Posted 23 June 2014 - 05:49 AM
Bomb Bloke, on 22 June 2014 - 10:49 PM, said:
metron80, on 22 June 2014 - 06:47 PM, said:
print("Rednet Broadcast Receiver Press \"S\" to Send") -- 1
print("Monitering All Rednet Since Day 316.") -- 2
print("Format: \"day | time | message | id\"") -- 3
print("===================================================") -- 4
0 members, 1 guests, 0 anonymous users