Date: Sun, 28 Dec 1997 11:45:47 +0200 (IST) From: Eli Zaretskii To: Noam Rotem cc: djgpp AT delorie DOT com Subject: Re: Escape Sequences / Reading from Console In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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?