?
Solved

Unbuffered Input

Posted on 1997-03-01
1
Medium Priority
?
341 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
os012897 earned 100 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

764 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