Online Schooling - Debt Consolidation - Wordpress Themes - Wordpress Themes - Submit articles

PDA

View Full Version : [C] Discarding input


Alhazred
Jul 31st 2004, 7:02 am
I have two processes (opened in a console window eachone) which cooperate, one of these processes is in waiting status, the other accept an input from a user, then send the input to the first process which elaborate. After these operations the processes exchange the roles between them, the second waits the datas from the second, which accept an input from a user and so on.
Here's the problem, if I write something in the console of the waiting process, it accepts that as input when I should insert the real input.

I need to know this, how can I do to discard the input inserted by a user to a process when it's waiting for an input from the other process and not from the user?

Sorry for my bad explanation, but I'm not so good with english :p

Alhazred
Aug 1st 2004, 3:45 am
Can I give focus on a console window?
How to do it?

Alhazred
Aug 2nd 2004, 4:54 am
Can I give focus on a console window?
How to do it?
I solved this problem, but still have the one with keyboard buffer.