Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #814
| From | Dave Higton <davehigton@dsl.pipex.com> |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: TaskWindow -txt &xxxxxxxx |
| Date | 2011-09-30 22:38 +0100 |
| Organization | Home |
| Message-ID | <5fdd061b52.davehigton@dsl.pipex.com> (permalink) |
| References | <3613761952.davehigton@dsl.pipex.com> <068f781952.martin@bach.planiverse.com> <4e853be3$0$831$e4fe514c@dreader28.news.xs4all.nl> |
In message <4e853be3$0$831$e4fe514c@dreader28.news.xs4all.nl>
Erik G <erikg@noname.invalid> wrote:
> On 27-9-2011 23:08, Martin Wuerthner wrote:
> > In message <3613761952.davehigton@dsl.pipex.com>
> > Dave Higton <davehigton@dsl.pipex.com> wrote:
> >
> >> I'm puzzled by the paragraph on PRM 3-326 that says:
> >
> >> "-txt &xxxxxxxx an 8 digit hex number giving the handle for the Parent
> >> to identify the Child by"
> >
> >> What sort of handle is this, and how can I find whether the child task
> >> is still running?
> >
> > That is the "txt-handle", a unique handle assigned by your task to the
> > child it launches. You will see this in the TaskWindow_Ego, which will
> > tell you the child's proper task handle. The only purpose of the
> > txt-handle is to be quoted back to you in the TaskWindow_Ego message.
> >
> > Once you got the proper task handle, you can suspend, resume or kill
> > your child task by sending it TaskWindow messages.
>
> Also, using the '-txt" parameter stops the TaskWindow module from
> actually opening a window for the output of the child program.
>
> This is useful when you have an application from which you want to run a
> command-line program, and handle the output of that program inside the
> application.
>
> *Without* the -txt parameter the TaskWindow command will open a
> taskwindow as soon as the child program produces any output (or
> immediately if the -display parameter is given). All output of the child
> goes to the taskwindow, and all input must be given by typing in the
> taskwindow.
>
> The parent task won't get a TaskWindow_Ego message so won't know the
> taskhandle of the child. If fact, I believe that the parent won't get
> *any* messages concerning the child. This means no TaskWindow_Morio
> message, so the parent won't know if the child has finished.
>
>
> *With* the -txt parameter no taskwindow will be opened. All output of
> the child will be passed to the parent via TaskWindow_Output messages,
> and the parent can send input to the child via TaskWindow_Input messages.
>
> See PRM 3-266 to 267 for a description of these messages and those
> mentioned my Martin.
What I'm getting is that the taskwindow is only opened if /neither/
-task nor -txt argument is given. This is disastrous, because the
whole point of using a taskwindow (in my case) is to present output
from a command line programme. I don't want to have to do the
textifying and window drawing myself.
I also need to know when the child task has finished. I need the
Morio message but not the Ego.
I'm sure I had it working earlier in the week, but it sure won't
behave the way I need it to now. I can get either the Ego/Morio
messages or a taskwindow, but not both.
Dave
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
TaskWindow -txt &xxxxxxxx Dave Higton <davehigton@dsl.pipex.com> - 2011-09-27 21:41 +0100
Re: TaskWindow -txt &xxxxxxxx Martin Wuerthner <spamtrap@mw-software.com> - 2011-09-27 23:08 +0200
Re: TaskWindow -txt &xxxxxxxx Dave Higton <davehigton@dsl.pipex.com> - 2011-09-27 22:33 +0100
Re: TaskWindow -txt &xxxxxxxx "Ste (news)" <steve@revi11.plus.com> - 2011-09-28 15:27 +0100
Re: TaskWindow -txt &xxxxxxxx Martin Wuerthner <spamtrap@mw-software.com> - 2011-09-28 17:16 +0200
Re: TaskWindow -txt &xxxxxxxx "Ste (news)" <steve@revi11.plus.com> - 2011-09-28 19:52 +0100
Re: TaskWindow -txt &xxxxxxxx Erik G <erikg@noname.invalid> - 2011-09-30 06:02 +0200
Re: TaskWindow -txt &xxxxxxxx druck <news@druck.org.uk> - 2011-10-02 16:13 +0100
Re: TaskWindow -txt &xxxxxxxx Erik G <erikg@noname.invalid> - 2011-10-13 11:23 +0200
Re: TaskWindow -txt &xxxxxxxx Alex Macfarlane Smith <nospam@archifishal.co.uk> - 2011-10-13 21:08 +0100
Re: TaskWindow -txt &xxxxxxxx druck <news@druck.org.uk> - 2011-10-15 12:13 +0100
Re: TaskWindow -txt &xxxxxxxx Erik G <erikg@noname.invalid> - 2011-10-18 16:25 +0200
Re: TaskWindow -txt &xxxxxxxx Martin Wuerthner <spamtrap@mw-software.com> - 2011-10-19 10:45 +0200
Re: TaskWindow -txt &xxxxxxxx Erik G <erikg@noname.invalid> - 2011-09-30 05:47 +0200
Re: TaskWindow -txt &xxxxxxxx Dave Higton <davehigton@dsl.pipex.com> - 2011-09-30 22:38 +0100
Re: TaskWindow -txt &xxxxxxxx Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-10-01 05:49 +0200
Re: TaskWindow -txt &xxxxxxxx Martin Wuerthner <spamtrap@mw-software.com> - 2011-10-01 13:19 +0200
Re: TaskWindow -txt &xxxxxxxx Dave Higton <davehigton@dsl.pipex.com> - 2011-10-01 20:20 +0100
Re: TaskWindow -txt &xxxxxxxx Steve Fryatt <news@stevefryatt.org.uk> - 2011-10-01 20:51 +0100
Re: TaskWindow -txt &xxxxxxxx Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-10-01 22:46 +0200
Re: TaskWindow -txt &xxxxxxxx Steve Fryatt <news@stevefryatt.org.uk> - 2011-10-01 22:07 +0100
Re: TaskWindow -txt &xxxxxxxx Steve Fryatt <news@stevefryatt.org.uk> - 2011-10-01 22:04 +0100
Re: TaskWindow -txt &xxxxxxxx Dave Higton <davehigton@dsl.pipex.com> - 2011-10-01 22:45 +0100
Re: TaskWindow -txt &xxxxxxxx Dave Higton <davehigton@dsl.pipex.com> - 2011-10-01 22:44 +0100
Re: TaskWindow -txt &xxxxxxxx Erik G <erikg@noname.invalid> - 2011-10-18 15:23 +0200
Re: TaskWindow -txt &xxxxxxxx Erik G <erikg@noname.invalid> - 2011-10-18 15:55 +0200
Re: TaskWindow -txt &xxxxxxxx druck <news@druck.org.uk> - 2011-10-19 20:27 +0100
Re: TaskWindow -txt &xxxxxxxx Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-10-14 07:53 +0200
Re: TaskWindow -txt &xxxxxxxx Gavin Wraith <gavin@wra1th.plus.com> - 2011-10-14 11:43 +0100
Re: TaskWindow -txt &xxxxxxxx Martin Wuerthner <spamtrap@mw-software.com> - 2011-10-14 13:26 +0200
Re: TaskWindow -txt &xxxxxxxx Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-10-15 20:37 +0200
Re: TaskWindow -txt &xxxxxxxx druck <news@druck.freeuk.com> - 2011-10-16 18:26 +0100
Re: TaskWindow -txt &xxxxxxxx Stewart Brodie <stewart.brodie@ntlworld.com> - 2011-10-16 23:28 +0100
Re: TaskWindow -txt &xxxxxxxx druck <news@druck.org.uk> - 2011-10-19 20:30 +0100
csiph-web