  Escape and Control Sequences? (ANSI, VT52) 
 The Question is:
 
What is the exact format of the position cursor
escape sequence "ESC Y LINE COLUMN"?
 
------_=_NextPart_001_01BEE273.F2B60888
Content-Type: text/html;
	charset="iso-8859-1"
 
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"&gt;
&lt;META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2540.0"&gt;
&lt;TITLE&gt;FW: Ask the Wizard: 'christopher.langevin@tyndall.af.mil'&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;BR&gt;
&lt;BR&gt;
 
&lt;P&gt;&lt;FONT SIZE=2&gt;-----Original Message-----&lt;/FONT&gt;
&lt;BR&gt;&lt;FONT SIZE=2&gt;From: &amp;quot;VMS001::WWW&amp;quot;@vms001.das-x.dec.com&lt;/FONT&gt;
&lt;BR&gt;&lt;FONT SIZE=2&gt;[mailto:&amp;quot;VMS001::WWW&amp;quot;@vms001.das-x.dec.com] &lt;/FONT&gt;
&lt;BR&gt;&lt;FONT SIZE=2&gt;Sent: Monday, August 09, 1999 9:06 AM&lt;/FONT&gt;
&lt;BR&gt;&lt;FONT SIZE=2&gt;To: sander@vmsbiz.eng.pko.dec.com; vms001@vmsweb.eng.pko.dec.com;&lt;/FONT&gt;
&lt;BR&gt;&lt;FONT SIZE=2&gt;wizard@vmsmkt.zko.dec.com&lt;/FONT&gt;
&lt;BR&gt;&lt;FONT SIZE=2&gt;Subject: Ask the Wizard: 'christopher.langevin@tyndall.af.mil'&lt;/FONT&gt;
&lt;/P&gt;
&lt;BR&gt;
 
&lt;P&gt;&lt;FONT SIZE=2&gt;Remote Host: citspr.tyndall.af.mil&lt;/FONT&gt;
&lt;BR&gt;&lt;FONT SIZE=2&gt;Browser Type: Mozilla/4.0 (compatible; MSIE 5.0; Windows 95; DigExt)&lt;/FONT&gt;
&lt;BR&gt;&lt;FONT SIZE=2&gt;Date/Time: Mon August 09, 1999 09:05:53 AM &lt;/FONT&gt;
&lt;BR&gt;&lt;FONT SIZE=2&gt;Remote Info: &amp;lt;null&amp;gt;&lt;/FONT&gt;
&lt;BR&gt;&lt;FONT SIZE=2&gt;Name: chris langevin&lt;/FONT&gt;
&lt;BR&gt;&lt;FONT SIZE=2&gt;Email Address: christopher.langevin@tyndall.af.mil&lt;/FONT&gt;
&lt;BR&gt;&lt;FONT SIZE=2&gt;CPU Architecture: VAX&lt;/FONT&gt;
&lt;BR&gt;&lt;FONT SIZE=2&gt;Version: Other&lt;/FONT&gt;
&lt;BR&gt;&lt;FONT SIZE=2&gt;Questions:&lt;/FONT&gt;
&lt;/P&gt;
 
&lt;P&gt;&lt;FONT SIZE=2&gt;What is the exact format of the position cursor&lt;/FONT&gt;
&lt;BR&gt;&lt;FONT SIZE=2&gt;escape sequence &amp;quot;ESC Y LINE COLUMN&amp;quot;?&lt;/FONT&gt;
&lt;/P&gt;
 
&lt;/BODY&gt;
&lt;/HTML&gt;
------_=_NextPart_001_01BEE273.F2B60888--
 
 
 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 "&lt;ESC&gt; 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:
 
    &lt;ESC&gt;&lt;Y&gt;&lt;row+32&gt;&lt;column+32&gt;
 
  The equivilent ANSI Cursor Position (CUP) sequence looks like this:
 
    &lt;ESC&gt;[&lt;row&gt;;&lt;col&gt;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.
