scsh-users
[Top] [All Lists]

Re: Output to control terminal

To: RT Happe <rthappe@mathematik.uni-freiburg.de>
Subject: Re: Output to control terminal
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: Tue, 16 Jul 2002 10:00:32 +0200
Cc: <scsh-bugs@zurich.ai.mit.edu>
Sender: gasbichl@informatik.uni-tuebingen.de
>>>>> "RT" == RT Happe <rthappe@mathematik.uni-freiburg.de> writes:

RT> On Mon, 15 Jul 2002, Martin Gasbichler wrote:
>> >>>>> "RT" == RT Happe <rthappe@mathematik.uni-freiburg.de> writes:
RT> I cannot write to the control terminal opened as input file, then dupped.
>> 
>> You have to open the file in read/write mode if you want to use it for
>> input and output as well:

RT> I was going to suggest an addition to the Scsh manual --for the sake of
RT> slow-motion thinkers such as me--, but ... it already gives precisely your
RT> advice.  Ouch, and thanks anyway.

I think the documentation for dup->in/outport could be more explicit
about this. Furthermore, these procedures could perform a run-time
check via fdes-status-- the error message you got wasn't that
instructive.

-- 
Martin

<Prev in Thread] Current Thread [Next in Thread>