Page 1 of 1

trying to create int service getkey

Posted: Tue Jul 03, 2007 8:45 am
by digo_rp
I´m trying to create a int 2e - service 01 -> get key from keyboard

but for a single task it works, now is my question.

what to do if I have 2 tasks waiting for a key from keyboard?

how can I do it ?

anyone could give some help, please?

now I got sysenter/sysexit working, if anyone wants anything from my source just ask. I got software taskswitching, v86, bitmap mm

Posted: Tue Jul 03, 2007 9:05 am
by frank
Here is my take on it. When do ever think that allowing 2 separate tasks to wait for keyboard input at the same time is a good idea? Unless you have multiple virtual consoles. Then you should only send the key press to the task in the active console and make the other tasks wait until their console is active to receive the key press. So I guess the easiest way to do it would be
to have a separate key buffer for each virtual console and to always add the key press to the active consoles buffer. I hope some of that made some sense.

sure, it makes sense.

Posted: Tue Jul 03, 2007 9:15 am
by digo_rp
sure, I have to dev a virtual consoles at my kernel :-D


tnx so much

Posted: Tue Jul 03, 2007 9:32 am
by AJ
Another way of thinking about it is to have one task with the 'focus' - like with a window manager. The focussed task then becomes the target of the key press.

Adam