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