[Coco] OS9 Programming question
Bill Pierce
ooogalapasooo at aol.com
Sat Jan 19 10:18:02 EST 2013
What sort of flags? The forked processes already have the keys in question intercepted. They still seem to go to the buffer. This occurs no matter if the forked process is in C or ML. I think the real problem is that the forked processes are running in the same window path therefore sharing the same stdin & stdout.
hi
maybe you can set flags for each window, and clear all the flag on return
to the main code. This would avoid having pending breaks. ofcourse the
polling of all the flags needs to be done on entry in the main code.
i hope this gives you ideas.
cba
Music from the Tandy/Radio Shack Color Computer 2 & 3
https://sites.google.com/site/dabarnstudio/
Bill Pierce
ooogalapasooo at aol.com
-----Original Message-----
From: camillus Blockx <camillus.b.58 at gmail.com>
To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
Sent: Sat, Jan 19, 2013 9:14 am
Subject: Re: [Coco] OS9 Programming question
hi
maybe you can set flags for each window, and clear all the flag on return
to the main code. This would avoid having pending breaks. ofcourse the
polling of all the flags needs to be done on entry in the main code.
i hope this gives you ideas.
cba
On Fri, Jan 18, 2013 at 10:02 AM, Bill Pierce <ooogalapasooo at aol.com> wrote:
>
> Hi guys,
> I have an OS9 program that runs a loop that forks several other programs
> in succession in overlay windows. Each program sets an intercept that
> catches the break key and terminates on break and goes to the next program
> until the loop is finished. When the loop exits and returns to the main
> window, all the "break" keys that were pressed in the other programs all
> echo to the main window. The screen redraws for each break key that was
> pressed for each of the programs that was run.
> Is there some way to clear those signals so they don't come back to the
> main program? The main program has it's own intercept which is reset on
> return, but it doesn't seem to do any good in this case. If I don't "break"
> the other programs and let them finish, the program runs fine on return.
> All the program are written in C and Asm.
>
> Any suggestions?
> Bill P
>
> Music from the Tandy/Radio Shack Color Computer 2 & 3
> https://sites.google.com/site/dabarnstudio/
> Bill Pierce
> ooogalapasooo at aol.com
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
>
--
Coco mailing list
Coco at maltedmedia.com
http://five.pairlist.net/mailman/listinfo/coco
More information about the Coco
mailing list