Link to home
Start Free TrialLog in
Avatar of gsbabu
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
Avatar of Binder
Binder

 Sorry, I don´t understand what you want to do. Do you
want to build a library of keyboard functions? What is your O.S.?
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.
Avatar of gsbabu

ASKER

Hi

i am using gcc on solaris 2.6. more helps/suggesstions appreciated.

-gsbabu
ASKER CERTIFIED SOLUTION
Avatar of nietod
nietod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial