From owner-freebsd-questions@FreeBSD.ORG Tue Aug 17 23:21:34 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D19CA16A4CE for ; Tue, 17 Aug 2004 23:21:34 +0000 (GMT) Received: from lilzmailso02.liwest.at (lilzmailso02.liwest.at [212.33.55.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CFA443D3F for ; Tue, 17 Aug 2004 23:21:34 +0000 (GMT) (envelope-from dgw@liwest.at) Received: from cm248-230.liwest.at ([81.10.248.230]) by lilzmailso02.liwest.at with esmtp (Exim 4.24) id 1BxDG6-0004SE-W4 for questions@freebsd.org; Wed, 18 Aug 2004 01:20:51 +0200 From: Daniela To: questions@freebsd.org Date: Wed, 18 Aug 2004 01:25:21 +0000 User-Agent: KMail/1.5.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200408180125.21407.dgw@liwest.at> Subject: Read from keyboard with redirected stdin X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dgw@liwest.at List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2004 23:21:34 -0000 Hi! I'm writing a program which acts as a filter, so stdin and stdout will be redirected most of the time. However, in one case I have to read some input from the keyboard. Well, I have stderr for displaying the prompt, but what file can I read from to get keyboard input in any case? Please don't point me to libraries doing the job, as I'm doing it in ASM. It's a quite simplistic program and I don't want it to grow unnecessarily. Regards, Daniela