Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

How to implement an interrupt by typing anything in NISO2 console?

If I use getchar, problem will occur: the flow will stopped at the very position of getchar() waiting for my inputs from stdin. But that's not what I want it to be. The program should not be halted if I type nothing, but will immediately put to the end If I press anything on my keyboard. Could anyone help me out ? Thx :D

No RepliesBe the first to reply