home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!rutgers!cbmvax!jesup
- From: jesup@cbmvax.commodore.com (Randell Jesup)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: A couple of questions
- Message-ID: <37210@cbmvax.commodore.com>
- Date: 22 Nov 92 03:27:26 GMT
- References: <55989@dime.cs.umass.edu>
- Reply-To: jesup@cbmvax.commodore.com (Randell Jesup)
- Organization: Commodore, West Chester, PA
- Lines: 29
-
- robinson@elux3.cs.umass.edu (RICHARD ROBINSON) writes:
- >1. Can a packet sent to DOS be aborted? I send an ACTION_READ to a console,
- >and need to get rid of it when I exit. I just can't ask the user 'please hit
- >a key so I can exit.' And since the exit is based on the termination of
- >another process, there is no way to not send the packet when I'm about to,
- >'cause I don't know when it is going to exit.
-
- No, packets can not (currently) be aborted. 2.0 has an AbortPkt()
- function, but it is not actually implemented (really implementing it will
- require cooperation on the part of the handler/filesystem).
-
- >Failing that, can I trick the console into thinking I typed something?
-
- Not really (not safely). You can, however, use WaitForChar() with
- consoles (note that it won't work for most non-consoles, so be prepared to
- fall back to Read()).
-
- >2. Is there any way to find out how many characters can be read from
- >a console? Transferring characters to and from a pipe one at a time is
- >pathetically slow.
-
- No. Sorry.
-
- --
- To be or not to be = 0xff
- -
- Randell Jesup, Jack-of-quite-a-few-trades, Commodore Engineering.
- {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com BIX: rjesup
- Disclaimer: Nothing I say is anything other than my personal opinion.
-