home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!mcsun!chsun!bernina!wild
- From: wild@nessie.cs.id.ethz.ch (Markus Wild)
- Subject: Re: Console RAW mode.
- Message-ID: <1992Dec17.232419.22268@bernina.ethz.ch>
- Sender: news@bernina.ethz.ch (USENET News System)
- Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
- References: <1992Dec17.051157.23971@serval.net.wsu.edu>
- Date: Thu, 17 Dec 1992 23:24:19 GMT
- Lines: 25
-
- In article <1992Dec17.051157.23971@serval.net.wsu.edu> rnelson@wsuaix.csc.wsu.edu (roger nelson;S23487) writes:
- >Is there an escape sequence that will put the CLI shell into
- >unbuffered mode and one that will enter RAW mode.
-
- Not an escape sequence, but a packet you can send to the handler. It's
- called ACTION_SCREENMODE (or SCREEN_MODE don't remember). This should be
- feasible in C, I guess you could get into some troubles trying to do it
- with scheme (unless your scheme has been enhanced by Amiga-isms).
-
- > I would like to read the next key pressed with getc() in C or
- > (read-char) in scheme without waiting for the return key to be pressed.
- >
- > If a function key, cursor on num-keypad key is pressed, I want to be
- > able to read the escape sequence.
-
- The above trick switches the CON window into RAW mode, so you get the
- same behavior as you'd get if you opened a RAW window for I/O. Unless you
- specifically request raw keycodes, you still get plain ascii values, and
- escape sequences for the functions keys, no problem here.
-
- -Markus
- --
- Markus M. Wild - wild@nessie.cs.id.ethz.ch | wild@amiga.physik.unizh.ch
- Vital papers will demonstrate their vitality by spontaneously moving
- from where you left them to where you can't find them.
-