From mboxrd@z Thu Jan 1 00:00:00 1970
To: 9fans@cse.psu.edu
Subject: Re: [9fans] isatty
From: rog@vitanuova.com
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="upas-fomyyeinpybuziplvrvgvivwni"
Message-Id: <20010214144102.73D9C19A1D@mail.cse.psu.edu>
Date: Wed, 14 Feb 2001 15:45:53 +0000
Topicbox-Message-UUID: 6433f622-eac9-11e9-9e20-41e7f4b1d025
This is a multi-part message in MIME format.
--upas-fomyyeinpybuziplvrvgvivwni
Content-Disposition: inline
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
i was wondering whether it might not be useful
for the terminal handler (win/rio) to print a prompt
of some kind when it got a read request on /dev/cons.
that way you get a prompt for all other programs too
(e.g. db(1)) without the clutter of isatty() and the like.
only problem is you wouldn't be sure quite which
program was asking for input. hmm, maybe not quite
such a good idea after all.
rog.
--upas-fomyyeinpybuziplvrvgvivwni
Content-Type: message/rfc822
Content-Disposition: inline
Return-Path: <9fans-admin@cse.psu.edu>
Received: from punt-2.mail.demon.net by mailstore for rog@vitanuova.com
id 982158790:20:03786:2; Wed, 14 Feb 2001 13:53:10 GMT
Received: from psuvax1.cse.psu.edu ([130.203.4.6]) by punt-2.mail.demon.net
id aa2111092; 14 Feb 2001 13:52 GMT
Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.4.6])
by mail.cse.psu.edu (CSE Mail Server) with ESMTP
id 1BB5D19A1A; Wed, 14 Feb 2001 08:52:10 -0500 (EST)
Received: from plan9.cs.bell-labs.com (plan9.bell-labs.com [204.178.31.2])
by mail.cse.psu.edu (CSE Mail Server) with SMTP id 5293B199EC
for <9fans@cse.psu.edu>; Wed, 14 Feb 2001 08:51:40 -0500 (EST)
To: cse.psu.edu!9fans
Subject: Re: [9fans] isatty
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="upas-edblefpsdajijxfcwnevsvxivi"
Message-Id: <20010214135140.5293B199EC@mail.cse.psu.edu>
Sender: cse.psu.edu!9fans-admin
Errors-To: 9fans-admin@cse.psu.edu
X-BeenThere: 9fans@cse.psu.edu
X-Mailman-Version: 2.0.1
Precedence: bulk
Reply-To: cse.psu.edu!9fans
List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu>
List-Archive:
Date: Wed, 14 Feb 2001 08:51:37 -0500
This is a multi-part message in MIME format.
--upas-edblefpsdajijxfcwnevsvxivi
Content-Disposition: inline
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Yeah. For purity and consistency, I tried to get TD to forget
about prompting in rc, just have it run commands, but he
caved in to pressure from less clean-minded people.
-rob
--upas-edblefpsdajijxfcwnevsvxivi
Content-Type: message/rfc822
Content-Disposition: inline
Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Wed Feb 14 07:45:25 EST 2001
Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Wed Feb 14 07:45:24 EST 2001
Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.8.6])
by mail.cse.psu.edu (CSE Mail Server) with ESMTP
id 0C54819A1A; Wed, 14 Feb 2001 07:45:11 -0500 (EST)
Received: from presto.hci-net (unknown [212.240.227.6])
by mail.cse.psu.edu (CSE Mail Server) with SMTP id 7C58819A16
for <9fans@cse.psu.edu>; Wed, 14 Feb 2001 07:44:00 -0500 (EST)
To: 9fans@cse.psu.edu
From: rog@vitanuova.com
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Message-Id: <20010214124400.7C58819A16@mail.cse.psu.edu>
Subject: [9fans] isatty
Sender: 9fans-admin@cse.psu.edu
Errors-To: 9fans-admin@cse.psu.edu
X-BeenThere: 9fans@cse.psu.edu
X-Mailman-Version: 2.0.1
Precedence: bulk
Reply-To: 9fans@cse.psu.edu
List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu>
List-Archive:
Date: Wed, 14 Feb 2001 13:48:40 0000
> since the idea is that what i see from
> ls
> should be a good guide to what grep sees in
> ls | grep '\.c'
> then yes, that isatty is indeed a bad idea
mind you, plan 9 isn't entirely innocent in this
respect, c.f. /sys/src/cmd/rc/exec.c:/Isatty
--upas-edblefpsdajijxfcwnevsvxivi--
--upas-fomyyeinpybuziplvrvgvivwni--