X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "Cody" Newsgroups: comp.os.msdos.djgpp References: <3c24f3be AT leia DOT ktsnet DOT com> <3942-Tue25Dec2001182106+0200-eliz AT is DOT elta DOT co DOT il> Subject: Re: bug in djgpp 3.0.2? surely it's my fault Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Original-NNTP-Posting-Host: kx-nachtx-ppp072.ktsnet.com Message-ID: <3c2927d7@leia.ktsnet.com> Date: Tue, 25 Dec 2001 19:18:35 -0600 NNTP-Posting-Host: 216.60.177.225 X-Complaints-To: abuse AT swbell DOT net X-Trace: nnrp2.sbc.net 1009329486 216.60.177.225 (Tue, 25 Dec 2001 19:18:06 CST) NNTP-Posting-Date: Tue, 25 Dec 2001 19:18:06 CST Organization: SBC Internet Services To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > Does it stop waiting if you press [Enter] right after the first key? Only if the first key is EOF, which I don't think (I'm certainly noone to be commenting on the standard) is the way it's supposed to work. I thought that it should be any key, followed of course by '\n'. > If so, what you see is the normal, so-called ``cooked'' operation of > a terminal: the read operation doesn't return until you press Enter. > That's because by default, the terminal device is in line-input > mode. I believe this is so on Unix as well. Right. I understand that. It's just that it doesn't stop waiting until I press EOF and then '\n'. Is this how it's supposed to be? No other compiler does this (which doesn't really say much). > To get a single-key input, you need to use the termios functions to > switch the terminal into raw mode. The library reference has the > details. Right. An example would be getch() in conio.h, right? I understand that (I think). I'm just referring to this prob w/ it waiting until I press EOF and then '\n', rather than any combination of keys and then '\n'.