Hi Jan,

somehow I cannot understand why you would need to do that. What are you 
trying to achieve? If you need input from keyboard, then you should use the 
correct API depending on the type of user interface you are using.

So normally Qemu would use graphical output. So you'd probably create a 
window with a canvas and set up a handler for keyboard events with the 
canvas widget.

If you wanted to do text/pseudo-graphical output, you'd use io/console.h and
read keyboard events with console_get_event[_timeout]().

An interactive application in HelenOS is not really supposed to read/write 
stdin/stdout. It won't do what you want, since stdin/stdout are completely 
dumbed down, they won't work with special keys, pseudo-graphics, mouse etc. 
There is no serial terminal emulation in HelenOS for stdin/stdout of tasks.

Cheers,
Jiri


Od: Jan Mareš <[email protected]>


"

Hello,



I noticed that when I have a fibril which is blocked in read from stdin and 
I want to write something to stdout, call to write gets blocked until read 
is finish. Is there a way to fix vfs/locfs so the write would finish before 
read?




Thank you for every suggestion,

Jan


_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel";
_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel

Reply via email to