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

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!rpi!uwm.edu!rutgers!cbmvax!jesup
  2. From: jesup@cbmvax.commodore.com (Randell Jesup)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: System() and pr_ConsoleTask
  5. Message-ID: <34571@cbmvax.commodore.com>
  6. Date: 22 Aug 92 00:43:02 GMT
  7. References: <paulk.15ls@terapin.com>
  8. Reply-To: jesup@cbmvax.commodore.com (Randell Jesup)
  9. Organization: Commodore, West Chester, PA
  10. Lines: 30
  11.  
  12. paulk@terapin.com (Paul Kienitz) writes:
  13. >Why do people traditionally pass a window filehandle to System() for input and
  14. >NULL for output?  There's nothing in the documentation to support this -- what
  15. >is it for?
  16.  
  17.     It's something that has never been really documented (but has always
  18. been there since 1.x).  If you pass NULL for output to Execute() or System(),
  19. it will open "*" to get an output filehandle.  If you pass an interactive
  20. input filehandle, it will set your pr_ConsoleTask to point to that window,
  21. and redirect signals from that window to the system/execute process (using
  22. ACTION_CHANGE_SIGNAL) before opening "*".
  23.  
  24. >The other day I found that when I run my program which opens a CON: window and
  25. >then runs a program in it with System(command, SYS_Input, windowhandle,
  26. >SYS_Output, NULL, TAG_DONE) -- woops, make that SystemTags -- running UnZip 4.1
  27. >causes its output to go to the parent CLI window instead of to the window I
  28. >gave it, EVEN THOUGH I had specifically pointed my own pr_ConsoleTask to the
  29. >new window beforehand, and it's supposed to copy that from its parent process.
  30. >The new CLI inside System should be completely unaware of the original CLI
  31. >window.
  32.  
  33.     I'm afraid I can't figure out what went wrong from that description.
  34.  
  35. -- 
  36. "Rev on the redline, you're on your own; seems like a lifetime, but soon it's
  37.  gone..."  Foreigner
  38. -
  39. Randell Jesup, Jack-of-quite-a-few-trades, Commodore Engineering.
  40. {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com  BIX: rjesup  
  41. Disclaimer: Nothing I say is anything other than my personal opinion.
  42.