home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / vms / 14479 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.3 KB  |  36 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!mcsun!sun4nl!kubds1!hvddool
  3. From: hvddool@kub.nl (H.M. van den Dool)
  4. Subject: How do I read the escape-key *AND* escape-sequences
  5. Message-ID: <1992Sep02.204648.19370@kub.nl>
  6. Date: Wed, 02 Sep 92 20:46:48 GMT
  7. Organization: Tilburg University, Tilburg, The Netherlands
  8. Nntp-Posting-Host: kubds5.kub.nl
  9. Lines: 25
  10.  
  11. I'm currently working on a menu-interface containing some sub-menu's.
  12. Selections are made using the cursor keys. To get back to the previous 
  13. menu the ESCAPE-key has to be pressed once. Just in case: using some 
  14. other key but ESCAPE to go to the previous menu is out of the question.
  15.  
  16. With SMG$READ_KEYSTROKE I can read everything _but_ a single 
  17. ESCAPE-key. Using some very simple QIO I can read a single character 
  18. including the ESCAPE-key perfectly, but loose control over escape 
  19. sequences as generated by the cursor keys.
  20.  
  21. What I need is an input routine (preferrably in C) which returns the
  22. value of the key pressed (i.e. CURSOR-UP when cursor-up is pressed, and
  23. ESCAPE when the escape-key is pressed)
  24.  
  25. I figure it's got something to do with a time-out which should occur 
  26. when VMS starts waiting for a terminator when the ESCAPE key is pressed
  27. only once. 
  28.  
  29. Can someone direct me to such a routine or tell me how to write one 
  30. myself?
  31.  
  32. Thanks,
  33. -- 
  34. Hans van den Dool, hvddool@kub.nl
  35. Tilburg University Library
  36.