delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/10/19/11:04:47

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: get one-character input from user
Date: 19 Oct 2001 14:48:14 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 21
Message-ID: <9qpefe$phi$1@nets3.rz.RWTH-Aachen.DE>
References: <9qpe2m$7s1$2 AT cyan DOT nl DOT gxn DOT net>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1003502894 26162 137.226.32.75 (19 Oct 2001 14:48:14 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 19 Oct 2001 14:48:14 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Bart van den Burg <bart AT bart99 DOT tmfweb DOT nl> wrote:

> I want to get user input, but only one keyboard key at a time
> without having to push enter.  how do I do this?

getkey(), or getch()

To be found in <pc.h> or <conio.h>

For further information:

	info libc functional conio
or	info libc functional bios

Note: this is all PC-specific. Don't expect to be find these functions
on other platforms, if you ever port this program.


-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019