[comp.terminals] vt220 escape sequences

eam@soleil.UUCP (Ed A. Mills) (06/22/89)

Does any know an <ESC> sequence to caps-lock a VT-220?  Also, is there
a sequence which checks the terminal to see if is already locked?

The VMS set terminal uppercase command seems to have unusual results,
none of which seem to set terminal uppercase.

Along the same lines, how about setting the WRAP on and off?  

Ed Mills
Harris Semiconductor 
Melbourne, FL

leichter@CS.YALE.EDU (Jerry Leichter (LEICHTER-JERRY@CS.YALE.EDU)) (06/23/89)

In article <716@soleil.UUCP>, eam@soleil.UUCP (Ed A. Mills) writes...
>Does any know an <ESC> sequence to caps-lock a VT-220?  Also, is there
>a sequence which checks the terminal to see if is already locked?

There is no sequence to set the caps-lock key, nor is there any way to query
its state.

>The VMS set terminal uppercase command seems to have unusual results,
>none of which seem to set terminal uppercase.

SET TERMINAL/UPPERCASE essentially tells VMS that the terminal it is talking
to only speaks uppercase.  (There aren't many such terminals left in the world
outside of museums....)  To avoid the confusion which would result from having
different characters which displayed the same, VMS forces all characters, in
or out, to uppercase.  This includes some surprising transformations if you
don't happen to have a list of the characters actually available on old
devices like ASR-33's or VT05's.  (VT05's, BTW, had a wonderful mode in which
they could SEND lower case characters, but they could only DISPLAY them as
upper case.  Boy, could that get confusing.)

>Along the same lines, how about setting the WRAP on and off?  

WRAP is a cause of eternal confusion, since it can be done in two places.  If
you set the terminal to autowrap mode (which you can do from SETUP or with the
CSI ? 7 h sequence) the terminal itself will move the cursor to the next line
when a line overflows.  However, SET TERM/WRAP does something entirely dif-
ferent:  It tells *VMS* to watch the lengths of lines that it sends to the
terminal and wrap them (by inserting a carriage return/line feed into the
output stream) when they get too long.

You should chose one or the other place to have wrapping done.  Doing it in
both places can result in odd behavior.  I generally let VMS do it - that is,
I have AUTOWRAP disabled at the terminal, and do a SET TERM/WRAP.

BTW, it is not possible to query the state of AUTOWRAP mode on a VT200-series
terminal.  It IS possible on a VT300.
							-- Jerry