gsbabu
asked on
Keyboard Work..(Misc)
Hello,
When we press any key present in the keyboard, for ex(Enter key), it is echoed on the screen. Is it possible to do the same work with any kind of code/functions prebuilt. If so, please help me. thanks
--gsbabu
When we press any key present in the keyboard, for ex(Enter key), it is echoed on the screen. Is it possible to do the same work with any kind of code/functions prebuilt. If so, please help me. thanks
--gsbabu
Standard C++ doesn't allow for this. all input is echoed and line buffered (the user has to presse enter before your program gets the input.
But many compilers provide non-stnadard functions that will allow you to obtain input without line buffering and/or echoing. So what compiler are you using? You might try looking for a function called KeyPressed() and one called ReadKey(), which I beleive were used by Borland compilers for the Mac.
But many compilers provide non-stnadard functions that will allow you to obtain input without line buffering and/or echoing. So what compiler are you using? You might try looking for a function called KeyPressed() and one called ReadKey(), which I beleive were used by Borland compilers for the Mac.
ASKER
Hi
i am using gcc on solaris 2.6. more helps/suggesstions appreciated.
-gsbabu
i am using gcc on solaris 2.6. more helps/suggesstions appreciated.
-gsbabu
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
want to build a library of keyboard functions? What is your O.S.?