Xref: utzoo comp.unix.i386:2234 comp.unix.wizards:20072 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!rutgers!mcnc!rti!sas!jwd From: jwd@sas.UUCP (John W. DeBoskey) Newsgroups: comp.unix.i386,comp.unix.wizards Subject: Number of chars in input queue - terminal, keyboard Keywords: QUEUE TERM KEYBOARD ISC 1.0.6 Message-ID: <1439@sas.UUCP> Date: 9 Jan 90 16:42:00 GMT Organization: SAS Institute Inc.,Cary NC,25712 Lines: 19 Hello, The subject almost says it all. I'm running ISC 1.0.6. I want to find out how many characters are available to read from the terminal if there are any. ie: avail = in_queue(term_id). A BSD answer is to use FIONREAD, but sVr3 doesn't have it, and I've been unable to duplicate it. Please don't tell me to RTFM or read the monthly intros. I have and they don't help. I'm starting to think the only way I can do this is to actually issue a read, and do my own internal buffering, but I DON'T really want to do this. If anyone has some ideas, or knows a way that isn't doc'd, please let me know. I'd really appreciate it. Thanks!! John W De Boskey jwd@sas.UUCP (w) jwd%sas@rti.rti.org jwd@baggins.UUCP (h) jwd%baggins@mcnc.mcnc.org