home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12264 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.7 KB  |  36 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!usc!sol.ctr.columbia.edu!ira.uka.de!rz.uni-karlsruhe.de!rz.uni-karlsruhe.de!ry41
  3. From: ry41@rz.uni-karlsruhe.de (Bernhard Moellemann)
  4. Subject: Re: console device raw mode
  5. Message-ID: <1992Aug13.123936.5658@rz.uni-karlsruhe.de>
  6. Sender: usenet@rz.uni-karlsruhe.de (USENET News System)
  7. Organization: University of Karlsruhe, Germany
  8. References:  <DEREKN.92Aug12113036@vw.ece.cmu.edu>
  9. Distribution: comp
  10. Date: Thu, 13 Aug 1992 12:39:36 GMT
  11. Lines: 23
  12.  
  13. In article <DEREKN.92Aug12113036@vw.ece.cmu.edu>, derekn@vw.ece.cmu.edu (Derek B. Noonburg) writes:
  14. >Using raw mode seems to be the only way to do it, but I can't get it
  15. >to work.  I wrote a little test program to send the escape sequence to
  16. >switch it into raw mode, read some events, and switch it back, but
  17. >it just hangs on the reads (I'm using the AmigaDOS Read() command,
  18. >which doesn't do buffering, right?).  The switching to/from raw mode
  19. >works fine alone.  It seems like something is swallowing the raw
  20. >information before it gets to my program.
  21.  
  22. I was sometimes forced to read/write to CON: in the RAW-mode and used
  23. the packet ACTION_SCREEN_MODE to do this.
  24.  
  25. Just call DoPkt(conport,ACTION_SCREEN_MODE,DOSTRUE) to enable RAW-mode and
  26. use DoPkt(...,DOSFALSE) to go back to cooked output.
  27.  
  28. DoPkt() is 2.0, for 1.3 you should use a compiler-specific function from 
  29. c.lib.
  30.  
  31. -- 
  32.  Bernhard Moellemann   <spare space>   Chairman of the Nessy-Fan-Club   //
  33.  internet=zza@rz.uni-karlsruhe.de <space> FIDO=2:241/7506.42  IRC=ZZA  //
  34.  nessynet=008  Lifenet=77:7700/11.42  greetings to my Marsupilami  \\ //
  35.  2000/500 Technical Reference Manual:  "A1000, the original Amiga"  \X/
  36.