trying to create int service getkey

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

trying to create int service getkey

Post 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
frank
Member
Member
Posts: 729
Joined: Sat Dec 30, 2006 2:31 pm
Location: East Coast, USA

Post 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.
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

sure, it makes sense.

Post by digo_rp »

sure, I have to dev a virtual consoles at my kernel :-D


tnx so much
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post 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
Post Reply