Solved

Unbuffered Input

Posted on 1997-03-01
1
330 Views
Last Modified: 2008-03-10
I'd like to know how to handle unbuffered input. For example, a user would press a key and the program would continue without having to press enter after pressing that
key. I am using g++ (the gnu compiler) on a Solaris system.

Thanks in advance for any help.

Chris
0
Comment
Question by:chrism020397
1 Comment
 
LVL 3

Accepted Solution

by:
os012897 earned 50 total points
ID: 1161883
getch () and its derivates (make "man getch") returns a
character. There are different modes available which determine, whether it will actually wait for a character or just give an
ERR-value if none is available.

In anycase, it does not need a return to deliver a pressed key!

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question