Path: utzoo!attcan!uunet!steinmetz!mozart!pedicone
From: pedicone@mozart.steinmetz
Newsgroups: comp.unix.questions
Subject: Querying tty input with ioctl
Keywords: ioctl I/O device driver
Message-ID: <11527@steinmetz.ge.com>
Date: 14 Jul 88 16:47:56 GMT
Sender: news@steinmetz.ge.com
Reply-To: pedicone@mozart.steinmetz.ge.com ()
Distribution: na
Organization: General Electric CRD, Schenectady, NY
Lines: 10

I have an application in which I need to query tty input from a C program.
I can't use getc because I have other processing that must continue.  It
seems that I have to use ioctl in order to query the terminal directly.
Is this the best way to do it?  If so, does anybody have an example of
a driver that uses it.  If this is not the best way, what should I do?
I'm using a Sun 3/260.

Any insight would be appreciated!

John