Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!uccba!kfd1!wdm From: wdm@kfd1.UUCP (Bill Mulert) Newsgroups: comp.unix.questions Subject: SysV terminal input queue count Keywords: How do I find it? Message-ID: <220@kfd1.UUCP> Date: 15 Dec 88 21:30:46 GMT Organization: Klockner Ferromatik Desma, Erlanger, KY Lines: 17 While doing a port of a C program from Mushdos to Unix, recently, I needed to implement a kbhit() function. A kbhit comes in the Mushdos library, and implementing one under a BSD Unix usually involves an ioctl(fd, FIONREAD) or TIOQCOUNT. Ok, how does one do it under SysV? I am looking at an NCR Tower with a system V, and I can find no way to determine how many characters are waiting in the terminal input queue, or even if there are, or are not characters waiting. So how can you tell? -- Bill Mulert at Klockner Ferromatik Desma {decuac,pyramid,tut.cis.ohio-state.edu}!uccba!kfd1!wdm wdm%kfd1@uccba.uc.edu Voice 606-331-8900 CIS 74766,3576