home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!rz.uni-karlsruhe.de!rz.uni-karlsruhe.de!ry41
- From: ry41@rz.uni-karlsruhe.de (Bernhard Moellemann)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Console file handlers from within a Shell started program
- Message-ID: <1992Aug13.121722.5212@rz.uni-karlsruhe.de>
- Date: 13 Aug 92 12:17:22 GMT
- References: <1992Aug11.080104.3354@syma.sussex.ac.uk>
- Sender: usenet@rz.uni-karlsruhe.de (USENET News System)
- Organization: University of Karlsruhe, Germany
- Lines: 21
-
- In article <1992Aug11.080104.3354@syma.sussex.ac.uk>, mpue2@syma.sussex.ac.uk (James E. Talbut) writes:
- >I have a nice little CLI program for which I want to be able to use the
- >console io even if the program has got it's io redirected.
- >Does that make sense?
-
- I think not. The only reason I could imagine is the printing of errors.
-
- >I want access to the file handle that the Shell would give if the
- >programs io was not redirected, in addition to that for the redirected io.
-
- fh=Open("*",MODE_OLDFILE) in 1.2/3
-
- fh=Open("CONSOLE:",MODE_OLDFILE) in 2.0
-
- This gives you a copy of the handle to the console window.
-
- --
- Bernhard Moellemann <spare space> Chairman of the Nessy-Fan-Club //
- internet=zza@rz.uni-karlsruhe.de <space> FIDO=2:241/7506.42 IRC=ZZA //
- nessynet=008 Lifenet=77:7700/11.42 greetings to my Marsupilami \\ //
- 2000/500 Technical Reference Manual: "A1000, the original Amiga" \X/
-