Path: utzoo!attcan!uunet!mcvax!enea!kth!draken!duvan!drs-ano
From: drs-ano@duvan.nada.kth.se (Gunnar Nordmark)
Newsgroups: comp.sys.amiga
Subject: Re: Using Software Interrupts for Menu Handling
Message-ID: <432@draken.nada.kth.se>
Date: 27 Jun 88 00:44:46 GMT
References: <8806212054.AA00815@cory.Berkeley.EDU> <4080@cbmvax.UUCP>
Sender: news@nada.kth.se
Reply-To: G@epsilon.stacken.kth.se (Gunnar Nordmark)
Organization: The Royal Inst. of Techn., Stockholm
Lines: 36

In article <4080@cbmvax.UUCP> jesup@cbmvax.UUCP (Randell Jesup) writes:
>In article <8806212054.AA00815@cory.Berkeley.EDU> dillon@CORY.BERKELEY.EDU (Matt Dillon) writes:
>>	CLOSEing the file handle would probably crash the machine!  In
>>fact, sending any DOS packet from a software interrupt might crash the 
>>machine because DOS can only handle waiting for one response at a time
>>(because it expects the returned packet to be the first msg on the port).
>
>	Unless you install a pr_PacketWait handler....  However, I've never
>heard of anyone doing this, though it should work.  Figuring out what
>you should do will be the interesting part.  I wouldn't advise trying to
>write such a beast in anything but asm.
>
>Randell Jesup, Commodore Engineering {uunet|rutgers|ihnp4|allegra}!cbmvax!jesup

Great, I will start coding immediately! :-)
No, seriously, I think I'll do it another way (Jeez..., I'm a coward)
I'll just launch another process that can do the Close() for me. The
software interrupt wakes it up when the time has come.

The problem is, however, that I *do not* want to Close() the CON:
Why not?  Because it's my CLI-window!
I tried Matt's suggestion of CMD_FLUSHing the console.device that
CON: talks to, but no way. That villain (i.e. CON:) seems to ignore the
fact that it's CMD_READ returned early with an error. Sigh.
ConMan on the other hand doesn't precisely ignore the returned request,
it thinks it's a valid one resulting in a duplicate of the last typed
character.
(These are just wild guesses since I haven't the foggiest of what's going
on inside these handlers)

Maybe there are someone who does? 

SNAIL: Gunnar Nordmark          VOICE: (+46) 8 - 755 42 52
       Nora strand 5
       S-182 34 DANDERYD        EMAIL: G@epsilon.stacken.kth.se
       SWEDEN                          nordmark@vaxkab.sunet.se