[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to switch off line buffering in stdin?



is select() and FD_ISSET() what you are looking for??

On Wed, Jul 21, 1999 at 01:05:12PM +0200, Wojciech Zabolotny wrote:
> Hi All!
> 
> I'm writing an application, which implements some terminal functionalities.
> I'd like to receive every keystroke, just after the key is pressed
> (like with vga_getkey(), but in text mode).
> The standard "fgetc(stdin)" receives the char only after the whole line is
> entered. The "setvbuf(stdin,NULL,_IONBF,0);" doesn't help at all.
> How to implement it? Probably I should use "ioctls" to change the console's
> behaviour. Where should I look for the information?
> -- 
> 			TIA
> 			Wojciech Zabolotny
> 			wzab@ise.pw.edu.pl
> 
> http://www.gnupg.org  Gnu Privacy Guard - protect your mail & data
>                       with the FREE cryptographic system
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> 
> 

-- 
____________________________________________________________________________
Shao Zhang - Running Debian 2.1  ___ _               _____
Department of Communications    / __| |_  __ _ ___  |_  / |_  __ _ _ _  __ _ 
University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _` |
Sydney, Australia               |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
Email: shao@cia.com.au                                                  |___/ 
_____________________________________________________________________________


Reply to: