[En-Nut-Discussion] unblocking get char

Ayman Hendawy ayman.hendawy at gmail.com
Wed Oct 10 22:34:20 CEST 2012


Hi,

I need to add a function that not locking until the user input char through
standard input, by another meaning  using getchar(); function will lock the
thread until the user enter a char, I need the opposite that if the user
was keep pressing a certain char, it will get that char if not, the
execution will keep running without any blocking.

like getchar_unlocked() function.
like when open a windows system, if you keep press on a certain key you
will enter setup mode.

Kindly advice, Thanks

-- 
Best regards

Ayman Hendawy
Embedded system engineer

Cairo,Egypt

Phone: +20110406659



More information about the En-Nut-Discussion mailing list