delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/28/04:47:15

Date: Sun, 28 Dec 1997 11:45:47 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Noam Rotem <nrotem AT johnbryce DOT co DOT il>
cc: djgpp AT delorie DOT com
Subject: Re: Escape Sequences / Reading from Console
In-Reply-To: <Chameleon.971226144136.nrotem@netvision.netvision>
Message-ID: <Pine.SUN.3.91.971228114524.25311O-100000@is>
MIME-Version: 1.0

On Fri, 26 Dec 1997, Noam Rotem wrote:

> 2. Is there any portable function or asm code for reading one 
> single character from the console? (with DOS, I can use BIOS 
> interrupt 16h, but with unix I can't, as far as I understand 
> it). 

What's wrong with `getc'?  It can read single characters as well, if
you switch stdin to binary mode (use `setmode') and make it unbuffered
(use `setvbuf').  Did you try it?

- Raw text -


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