Re: Doing simple I/O in clntsrv example

Marcus Hähnel <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Organization Technische Universität Dresden
Message-ID <[email protected]>
On 2014-05-22 16:02, Valentin Hauner wrote:
> On 05/22/2014 03:41 PM, Marcus Hähnel wrote:
>> Sorry. Forgot to reply to the previous mail. Is this for a 64-bit or
>> 32-bit system?
> No problem.
> It's a 32-bit system, I'm compiling into ./bin/x86_586.

You need a terminal to do input. fbterminal is one that provides what 
you need. It does not work from the serial line out of the box as far as 
I know.

Please have a look at the x86-fb.* example in l4/conf/examples and 
start the client using the same method.
This will allow it to receive keyboard input. Instead of the 
ex_spectrum... example use fbterminal to start with mag using (for 
example) the following lines:

local c = { fb = mag_caps.svc:create(L4.Proto.Goos, "g=800x600"),
             term = l:new_channel():svr()
};
l:start({ caps = c }, "rom/fbterminal");

And then start the clntsrv-client in the terminal using (again, for 
example):

l:startv({ caps = { calc_server = calc_server},
             log = c.term:m("ro")
           }, "rom/ex_clntsrv-client");


Best regards,

- Marcus Haehnel

_______________________________________________
l4-hackers mailing list
[email protected]
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.