home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12373 < prev    next >
Encoding:
Internet Message Format  |  1992-08-16  |  1.0 KB

  1. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!mips!mips!decwrl!csus.edu!netcom.com!netcomsv!terapin!paulk
  2. From: paulk@terapin.com (Paul Kienitz)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: console device raw mode
  5. References: <1992Aug14.180224.2182@jato.jpl.nasa.gov>
  6. Message-ID: <paulk.15lq@terapin.com>
  7. Date: 15 Aug 92 02:14:58 PST
  8. Organization: BBS
  9. Lines: 14
  10.  
  11. > Yes, the original question was about how to read from a RAW with
  12. > dos.library.
  13.  
  14. > The reason Read() hangs, is because it will block until the number
  15. > of char-acters you specified to be read are read!
  16.  
  17. > One way to escape all this is to abandon the dos.library altogether
  18. > and use the IO Request mechanisms instead. At least this way you
  19. > could post an asyn-chronous read for one character (i.e. SendIO)
  20. > and get signaled when the read completed.
  21.  
  22. There's no reason you can't read one character at a time with Read(),
  23. or use asynchronous dos packets.  Descending to console.device is
  24. quite unnecessary, if you're starting with a dos window.
  25.