Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

Unbuffered Input

Posted on 1997-03-01
1
Medium Priority
?
346 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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.
Suggested Courses

648 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