home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- 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
- From: derekn@vw.ece.cmu.edu (Derek B. Noonburg)
- Subject: console device raw mode
- Message-ID: <DEREKN.92Aug12113036@vw.ece.cmu.edu>
- Sender: news@fs7.ece.cmu.edu (USENET News System)
- Organization: ECE Department, Carnegie Mellon University
- Distribution: comp
- Date: Wed, 12 Aug 1992 16:30:35 GMT
- Lines: 18
-
- I'm working on a program that needs to grab keystrokes from a console
- (a shell window) as the keys are pressed (i.e., no line editing, no
- buffering).
-
- Using raw mode seems to be the only way to do it, but I can't get it
- to work. I wrote a little test program to send the escape sequence to
- switch it into raw mode, read some events, and switch it back, but
- it just hangs on the reads (I'm using the AmigaDOS Read() command,
- which doesn't do buffering, right?). The switching to/from raw mode
- works fine alone. It seems like something is swallowing the raw
- information before it gets to my program.
-
- [This is on an Amiga 1000 with 2.04 ROMs.]
-
- - Derek
- --
- Derek Noonburg derekn@vw.ece.cmu.edu
- Electrical & Computer Engineering Dept., Carnegie Mellon University
-