HP OpenVMS Systems

ask the wizard
Content starts here

Escape and control sequence input in DCL?

» close window

The Question is:

 
I'm trying to write a DCL procedure that will create a menu system that will
 capture the cursor keys and return key (i.e. up and down arrows to move up and
 down the menu and enter key to process an entry). My problem revolves around
 my inability to captur
e the output of the cursor keys by using regular READ or INQUIRE commands. I've
 tried to accomplish this by using a ESC[A, ESC[B, ESC[C and ESC[D read but it
 seems to include all of the main keys except a few (the numbers, functions and
 T and Y!). I'd als
o like the cursor movement to occur immediately after striking the specific key
 but it seems that I need to hit return to process the INQUIRE or READ, is
 there a way round this?
 
 


The Answer is :

 
  DCL isn't designed nor intended to handle escape and control
  sequences, that more commonly requires the assistance of an
  executable -- for managing the cursor and the arrow keys, the
  executable has access to the various terminal driver sys$qio
  itemcodes and options, such as the extended read call.
 

answer written or last revised on ( 17-APR-2000 )

» close window