[comp.unix.wizards] Weird Sperry Terminals

gaspar@ALMSA-1.arpa (Al Gaspar) (04/29/87)

We have experienced an odd problem with Sperry SVT1220 terminals.
The escape sequence to start up the terminal printer mode works, but 
you can't turn it off without going into the terminal's setup mode.
The phenomenon only occurs on our two vaxen (a 750 running 4.2 bsd and
a 780 running BRL's 4.2).  We have Intel 310's running Xenix 3.0 and
two Sperry 5000/80s (Arete 1200s) running SysV.2 that the escape 
sequence works fine on.  To compound the problem, Sperry offers two
printer modes--autoprint and controller.  The escape sequence for
the controller mode screws up, but the escape sequence for autoprint
mode works fine (the difference is that in autoprint mode what you
are printing shows on your terminal screen as well as going to the
printer).  The autoprint exscape sequence is \"ESC?[5i\" to turn it
on and \"ESC?[4i\" to turn it off; the controller mode is \"ESC[5i\"
to turn it on and \"ESC[4i\" to turn it off.

The following is the script we were using to test the problem:

	echo "\033[5i\c"
	echo "\014\c"
	cat $1
	echo "\014\c"
	echo "\033[4i\c"

The terminals were set to vt100 mode and TERM was set to vt100.  When
you run the script on our vaxes it performs the first form feed 
correctly and cats the file, but the second form feed and the ending
sequence are just printed as is anything else you type on the terminal
until you go into setup and set printer back to normal mode.  If the
autoprint sequence is used instead of the controller mode, the script
works fine and returns the terminal to normal upon completion.

Any ideas on what is going on?  I am stumped.  I subscribe to unix-wizards
but not to info-terms; so please send any replies from info-terms to me
directly.

Thanx--

Al

-- 
Al Gaspar	<gaspar@almsa-1.arpa>
USAMC ALMSA, ATTN:  AMXAL-OW, Box 1578, St. Louis, MO  63188-1578
COMMERCIAL:  (314) 263-5118	AUTOVON:  693-5118
seismo!gaspar@almsa-1.arpa