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

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!fs7.ece.cmu.edu!derekn
  3. From: derekn@vw.ece.cmu.edu (Derek B. Noonburg)
  4. Subject: console device raw mode
  5. Message-ID: <DEREKN.92Aug12113036@vw.ece.cmu.edu>
  6. Sender: news@fs7.ece.cmu.edu (USENET News System)
  7. Organization: ECE Department, Carnegie Mellon University
  8. Distribution: comp
  9. Date: Wed, 12 Aug 1992 16:30:35 GMT
  10. Lines: 18
  11.  
  12. I'm working on a program that needs to grab keystrokes from a console
  13. (a shell window) as the keys are pressed (i.e., no line editing, no
  14. buffering).
  15.  
  16. Using raw mode seems to be the only way to do it, but I can't get it
  17. to work.  I wrote a little test program to send the escape sequence to
  18. switch it into raw mode, read some events, and switch it back, but
  19. it just hangs on the reads (I'm using the AmigaDOS Read() command,
  20. which doesn't do buffering, right?).  The switching to/from raw mode
  21. works fine alone.  It seems like something is swallowing the raw
  22. information before it gets to my program.
  23.  
  24. [This is on an Amiga 1000 with 2.04 ROMs.]
  25.  
  26. - Derek
  27. --
  28. Derek Noonburg                                derekn@vw.ece.cmu.edu
  29. Electrical & Computer Engineering Dept., Carnegie Mellon University
  30.