Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!uflorida!beach.cis.ufl.edu!kcw From: kcw@beach.cis.ufl.edu (Ken Whedbee) Newsgroups: comp.unix.programmer Subject: reading chars in raw mode with Ioctl .. How ? Message-ID: <24905@uflorida.cis.ufl.EDU> Date: 15 Oct 90 20:31:15 GMT Sender: news@uflorida.cis.ufl.EDU Reply-To: kcw@beach.cis.ufl.edu () Distribution: na Organization: UF CIS Department Lines: 21 Hello Continent - I m looking for example code (bsd derivative .. SunOS perferably) that reads characters one at a time instead of buffering the chars until a newline like the read() system call. I understand that ioctl() can do this by setting the terminal into raw mode such that no pre-processing of the input takes place. There's example code of how to do this on pg. 340 in Bach's book. But alas, this is system V code. Does anyone know of or can give me an example in bsd ? many thanx! -- Ken Whedbee Internet: kcw@beach.cis.ufl.edu University of Florida UUCP: ..!uflorida!beach.cis.ufl.edu!kcw "C Code. C code run. Run, code, run... PLEASE!!!" -- Barbara Toungue