Path: utzoo!attcan!uunet!husc6!uwvax!oddjob!ncar!ames!elroy!gryphon!vector!rpp386!jfh From: jfh@rpp386.UUCP (The Beach Bum) Newsgroups: comp.unix.wizards Subject: Re: How can I read keyboard without stopping Keywords: curses keyboard Message-ID: <5497@rpp386.UUCP> Date: 16 Aug 88 13:38:52 GMT References: <813@ms3.UUCP> <1246@mcgill-vision.UUCP> <1988Aug15.130550.8571@ateng.uucp> Reply-To: jfh@rpp386.UUCP (The Beach Bum) Organization: HASA, "S" Division Lines: 21 In article <1988Aug15.130550.8571@ateng.uucp> chip@ateng.UUCP (Chip Salzenberg) writes: |According to mouse@mcgill-vision.UUCP (der Mouse): |>3) FIONREAD. BSD systems have an ioctl you can apply to a terminal |> line to get the number of characters queued available for a read(). |> SV may have something similar; I don't know. |> |> Bad: - BSD only (as far as I know). | |Xenix has the exact equivalent to FIONREAD, but it's not an ioctl() call. |Instead, it's a system call all its own: rdchk(fildes). xenix has both methods. the rdchk() and an ioctl() request. it is spelt differently, FIORDCHK. this does not improve the situation. real unix still doesn't have a parallel method. -- John F. Haugh II +--------- Cute Chocolate Quote --------- HASA, "S" Division | "USENET should not be confused with UUCP: killer!rpp386!jfh | something that matters, like CHOCOLATE" DOMAIN: jfh@rpp386.uucp | -- apologizes to Dennis O'Connor