Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!grapevine!male!matilda.UK.Sun.COM!harry From: harry@matilda.UK.Sun.COM (Harry Protoolis - Sun EHQ) Newsgroups: comp.lang.c Subject: Re: getchar() Summary: getchar() problem, line buffering Message-ID: <5383@male.EBay.Sun.COM> Date: 5 Mar 91 17:07:04 GMT References: <1991Mar5.063644.8459@cs.mcgill.ca> Sender: news@male.EBay.Sun.COM Lines: 13 Marc, Your problem is that your system is line buffering input. (yes, even getchar() does this). Assuming that your are on a Unix system you can turn this off using ioctl to turn off cbreak mode (read tty(4)) to your input device. If you are running DOS I don't know, but there is certainly an equivalent. Cheers Harry Protoolis Harry.Protoolis@UK.Sun.COM