home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15776 < prev    next >
Encoding:
Text File  |  1992-11-13  |  1.8 KB  |  42 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!munnari.oz.au!metro!extro.ucc.su.OZ.AU!willw
  3. From: willw@extro.ucc.su.OZ.AU (William Waring)
  4. Subject: Re: A couple of questions
  5. Message-ID: <1992Nov13.063457.22216@ucc.su.OZ.AU>
  6. Sender: news@ucc.su.OZ.AU
  7. Nntp-Posting-Host: extro.ucc.su.oz.au
  8. Organization: /etc/organization
  9. References: <55989@dime.cs.umass.edu>
  10. Date: Fri, 13 Nov 1992 06:34:57 GMT
  11. Lines: 29
  12.  
  13. In article <55989@dime.cs.umass.edu> robinson@elux3.cs.umass.edu (RICHARD ROBINSON) writes:
  14. >
  15. >Ok, I have a couple of questions that I'd love to find answers to.
  16. >
  17. >1. Can a packet sent to DOS be aborted? I send an ACTION_READ to a console,
  18. >and need to get rid of it when I exit. I just can't ask the user 'please hit
  19. >a key so I can exit.' And since the exit is based on the termination of
  20. >another process, there is no way to not send the packet when I'm about to,
  21. >'cause I don't know when it is going to exit.
  22. >
  23. >Failing that, can I trick the console into thinking I typed something?
  24. >
  25. >2. Is there any way to find out how many characters can be read from
  26. >a console? Transferring characters to and from a pipe one at a time is
  27. >pathetically slow.
  28.  
  29. Are you using the console.device or opening a "CON:" window. If you're
  30. using CON: and Wb2.0, then you don't have to send a ACTION_READ packet to
  31. the device. Just do a straight SetMode(FileHandle,1) to turn the console
  32. window into RAW: mode. Then just do a straight DOS
  33. Read(FileHandle,DummyChar,1) from the filehandle. You should probably set
  34. the mode back to CON: when you do that. Other than that, shouldn't have
  35. any problems... If you're doing it using the console.device then look in
  36. the RKM: Devices manual for information on how to program the device. It's
  37. too lengthy to explain here... But I don't think you're using that meathod?
  38.  
  39. Regards,
  40.     Eddie
  41.  
  42.