Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!yale!think!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!nic.MR.NET!shamash!tank!gargoyle!ddsw1!olsa99!oct1!proxima!lucio From: lucio@proxima.UUCP (Lucio de Re) Newsgroups: comp.lang.c Subject: Re: Help wanted: unbuffered stdin?? Message-ID: <1275@proxima.UUCP> Date: 7 Apr 90 12:46:26 GMT References: <426@sheoak.bcae.oz> Reply-To: lucio@proxima.UUCP (Lucio de Re) Organization: FLAGSHIP Wide Area Networks - Cape Town Lines: 21 In article <426@sheoak.bcae.oz> 732113@sheoak.bcae.oz (732113) writes: >How can single characters be read from standard input without having to >wait for a newline? > >I'm trying to write an improved editor, and I can't even start without >this information. You deserve flaming for this! There are as many answers as there are "C" libraries, how is anyone to tell which answer you want? I'll mail you a solution if you let me know which of Unix or MSDOS you want the answer for (I can't vouch for other operating systems) as I am too lazy to cater for both worlds (and I also don't really like too many #ifdef's). ---------------------------------------------------------------------- I used to design nuclear reactors and you should see the code that engineers and scientists come up with. Yuuuck! Spaghetti everywhere. -------------------------------------------------- (Kenneth L Moore) - Lucio de Re ...uunet!ddsw1!olsa99!proxima!lucio -------------------------------------------------------- lucio@proxima Disclaimer: He must have been joking!