[an error occurred while processing this directive]

HP OpenVMS Systems

ask the wizard
Content starts here

Escape and Control Sequences? (ANSI, VT52)

» close window

The Question is:

 
What is the exact format of the position cursor
escape sequence "ESC Y LINE COLUMN"?
 
 
 


The Answer is :

 
  Information on the specific format of a typical ANSI escape sequence is
  included in the OpenVMS I/O User's Reference Manual -- there are defined
  characters used for introducers, intermediates, and final characters.
 
    http://www.openvms.digital.com:8000/
      72final/6136/6136pro_016.html#escape_cont_seq
 
  Here is an example of sending an escape sequence from DCL:
 
$ esc[0,7] = 27
$ fulldevnam = F$Edit(F$GetDVI("TT","FULLDEVNAM"),"UPCASE,COLLAPSE")
$ write sys$output esc + "]21;" + fulldevnam + esc + "\"
$ write sys$output esc + "]2L;" + fulldevnam + esc + "\"
 
  The "<ESC> Y" sequence is for a VT52, predates the ANSI standards, and
  is not a recommended sequence for new applications.  The usual definition
  of the sequence to set the cursor position for the VT52 series and for
  terminals emulating the VT52 series is:
 
    <ESC><Y><row+32><column+32>
 
  The equivilent ANSI Cursor Position (CUP) sequence looks like this:
 
    <ESC>[<row>;<col>H
 
  Applications can be written with the SMG call to retrieve escape
  sequences, the SMG$GET_TERM_DATA call.  This call can effectively be
  used alone, without requiring the use of SMG to manage the current
  terminal display.
 
  For information on escape sequences, see SYS$SYSTEM:SMGTERMS.TXT.
  This file is the basis for the SMG terminal definitions, but when used
  in conjunction with the SMG documentation can also serve as a useful
  reference of common escape sequences.

answer written or last revised on ( 9-AUG-1999 )

» close window