chimaybleue
02-22-2001, 06:30 AM
Which C++ header do I have to include to use functions like kbhit() ? In my doc, it is said that it's conio.h, but it doesn't exist on my sys ... Thanks ...
|
Click to See Complete Forum and Search --> : C++ headers chimaybleue 02-22-2001, 06:30 AM Which C++ header do I have to include to use functions like kbhit() ? In my doc, it is said that it's conio.h, but it doesn't exist on my sys ... Thanks ... andrzej 02-22-2001, 07:22 AM <conio.h> is DOS specific, I think. You should look at termcap if I'm not mistaken. [ 22 February 2001: Message edited by: andrzej ] chimaybleue 02-22-2001, 12:54 PM Sorry : kbhit() isn't included in termcap.h ... I checked this out ! andrzej 02-22-2001, 03:03 PM I didn't tell kbhit was in termcap. All I wanted to say was that I suspected termcap of containing some conio-type functions. You may also want to look at curses and ncurses. And I DONT PROMISE that you'll find kbhit() there ! Qubit 02-22-2001, 03:24 PM I doubt that you will find kbhit anywhere... You'll have to implement it yourself. I think that a sample implementation was posted a few months ago. Try searching on 'termcap' justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |