From owner-freebsd-hackers Wed Dec 28 01:24:46 1994 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id BAA14125 for hackers-outgoing; Wed, 28 Dec 1994 01:24:46 -0800 Received: from is1.hk.super.net (jbeukema@is1.hk.super.net [202.14.67.232]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id BAA14040 for ; Wed, 28 Dec 1994 01:24:37 -0800 Received: by is1.hk.super.net id AA05718 (5.67b/IDA-1.5 for FreeBSD-hackers ); Wed, 28 Dec 1994 17:24:22 +0800 Date: Wed, 28 Dec 1994 17:24:21 +0800 (HKT) From: John Beukema To: FreeBSD-hackers Subject: how to emulate kdhit()B? Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: hackers-owner@freebsd.org Precedence: bulk I cannot get the function kbhit() which works well under SCO to work under FBSD. The function which tries to read 1 char from stdin after setting flags to nonblocking, always returns true ie, keyboard hit when the term is in 'cooked' mode. Can anyone point me to a way to do this? jbeukema