Shell output for a new process...
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    ausPPC
    Posts: 543 from 2007/8/6
    From: Pending...
    How can a process created using either CreateProc() or CreateNewProc() produce Shell output? I've seen the tags for CreateNewProc() and experimented with a minimal set of them to successfully create a new process but I haven't found any documentation regarding Shell output for processes that aren't launched via Ambient or the Shell.
    PPC assembly ain't so bad... ;)
  • »25.03.11 - 01:55
    Profile Visit Website
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    You create an output console with dos.library/Open() and then attach it as a process default output with dos.library/SetOutput(). I use this technique in LuaExplorador.
  • »25.03.11 - 07:09
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    ausPPC
    Posts: 543 from 2007/8/6
    From: Pending...
    Thanks - I have that working now. I'm just assuming that it's a good idea for a process that does this to re-select the old file handle given by SelectOutput() and then Close() the console before quitting - is this the case?
    PPC assembly ain't so bad... ;)
  • »25.03.11 - 22:41
    Profile Visit Website