473,395 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

standard version of _kbhit()

86
is there any standard portable version of _kbhit() ...as its requires non-portable conio.h....
Apr 30 '07 #1
3 2495
JosAH
11,448 Expert 8TB
is there any standard portable version of _kbhit() ...as its requires non-portable conio.h....
I'm afraid you have to diddle a bit with the preprocessor and conditionally
compile whatever is available on a particular platform.

kind regards,

Jos
Apr 30 '07 #2
ayan4u
86
hmm...wats the alternative for unix based systems...perhaps ioctl().....
Apr 30 '07 #3
JosAH
11,448 Expert 8TB
All the solutions I know of set the terminal to 'raw' mode and at exit of the
process they set it back to 'cooked' mode again. Google for 'kbhit unix' for
a lot of fine solutions.

kind regards,

Jos
Apr 30 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: Steven T. Hatton | last post by:
I wanted to take a look at the actual C Programming Language specification which provides the libraries used by C++ in the <c*> Headers. A couple days ago, I found it freely available on the...
2
by: vikas | last post by:
hi, I want to generate random numbers in c++ (using vc++ 6.0) on hit of enter. I am using _kbhit(), but don't know how to reset it, so that I can use it again, can anybody help me with this. code...
4
by: Luke Wu | last post by:
I am just wondering what the following terms usually mean: 1) "Standard C" 2) "K&R C" 3) "ANSI C" I am pretty sure "ANSI C" usually refers to the C89 standard, but what
7
by: Mike | last post by:
Hi, I have read the Microsoft Product Feature Comparisons page many times over (http://msdn.microsoft.com/vstudio/products/compare/default.aspx), as well as Gregory's blog on the subject...
1
by: Kodo | last post by:
topic. Can the VB.NET standard 2003 version connect to SQL server 2000 from within the IDE. I read reviews on the software that said that it couldn't. I would like to confirm this. Here is a...
0
by: Jon Gabel | last post by:
I am getting ready to upgrade from VS 2003 to VS 2005. I am creating ..NET applications for desktop PCs and for PocketPCs. From the information on the Microsoft website, it appears that I could get...
5
by: copx | last post by:
Is there are standard way to detect which C standard is supported by the compiler? I mean for conditional compilation like: #if defined(C99) # include "stdint.h" #endif
52
by: lovecreatesbeauty | last post by:
Why the C standard committee doesn't provide a standard implementation including the C compiler and library when the language standard document is published? C works on the abstract model of low...
9
by: no | last post by:
Thanks- I intend to learn with Microsoft Tools but my plans are to stay within the embedded industry.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.