I have no code, I don't even know if this is possible, so hear I ask.
Is it possible to redirect the terminal via a wireless modem?
basically remote access for a computer from a pocket computer
I have not even begun testing as I don't think its possible, but I would like to hear it from the pro's.
Wireless Redirect concept
Started by Inumel, Apr 18 2015 05:15 PM
10 replies to this topic
#1
Posted 18 April 2015 - 05:15 PM
#2
Posted 18 April 2015 - 05:20 PM
Yes it is possible, just very difficult
#3
Posted 18 April 2015 - 05:32 PM
It is not so difficult at all. This is how it works: The sender overrides all of the term functions with arguments to send the invoked function to the reciever. The reciever then executes those functions. Be sure to ask me if I was not clear. 
For example:
newTerm.write = function(arg) term.write(arg) rednet.send(id,"term.write("..arg..")")
of course back up the original functions.
The reciever looks like this:
_,data = rednet.receive()
local func = loadstring(data)
setfenv(dfunc,_G)
func()
For example:
newTerm.write = function(arg) term.write(arg) rednet.send(id,"term.write("..arg..")")
of course back up the original functions.
The reciever looks like this:
_,data = rednet.receive()
local func = loadstring(data)
setfenv(dfunc,_G)
func()
Edited by Creator, 18 April 2015 - 05:36 PM.
#4
Posted 18 April 2015 - 05:53 PM
Yes, Terminal Redirection over Rednet is possible, and has been used in programs before.
And no, it does not look anything like the post above.
And no, it does not look anything like the post above.
#5
Posted 18 April 2015 - 05:56 PM
Well, but that is the basic idea.
#6
Posted 18 April 2015 - 06:32 PM
Thank you Lyqyd.
And Creator, for giving me some interesting ideas.
And Creator, for giving me some interesting ideas.
#7
Posted 18 April 2015 - 06:36 PM
You are welcome. One thing that makes me curios is that you gave dragon a +1 for telling you it is difficult to make
#8
Posted 18 April 2015 - 10:52 PM
Creator, it may not of been him to of +1'd me. And even if he did, that is not a noteworthy thing to do. My statement is sound, to create something such as the TROR is difficult. Depending on what you do it can be barely difficult, just getting a semi working shell, or quite difficult, such that you send every event over rednet so that both sides can interact with the same machine.
#9
Posted 18 April 2015 - 10:54 PM
It just amused me, that's all
#10
Posted 18 April 2015 - 10:55 PM
Also there is of course the problem of pocket computers having a different height and width of the computers.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












