Article View: comp.unix.programmer
Article #1030reading chars in raw mode with Ioctl .. How ?
From: Ken Whedbee
Date: Mon, 15 Oct 1990 20:31
Date: Mon, 15 Oct 1990 20:31
21 lines
1197 bytes
1197 bytes
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
Technical Details
Message-ID:
<24905@uflorida.cis.ufl.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!uflorida!beach.cis.ufl.edu!kcwShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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