home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12263 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.4 KB

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