home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 16204 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  1.6 KB

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