home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17498 < prev    next >
Encoding:
Text File  |  1992-12-20  |  1.7 KB  |  37 lines

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