Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: lasko@regent.enet.dec.com (Tim Lasko, Digital Equipment Corp., Marlborough, MA)
Subject: Re: device control sequences (was Re: LA50 info needed)
Date: 1995/06/08	[thread overview]
Message-ID: <3r7420$bma@nntpd.lkg.dec.com> (raw)
In-Reply-To: 3r4l6qINN3ij@duncan.cs.utk.edu


In article <3r4l6qINN3ij@duncan.cs.utk.edu>, shuford@cs.utk.edu (Richard Shuford) writes...
>In article <1995Jun6.185706@ivos02> Steve <gassner_st@ivos02> writes:
>> In general I have had very bad experience using ESC c on most devices, since
>> it causes the hardware to pause for a couple seconds.  At least on a
>> terminal...  

Yep, <ESC>c will do a power-up reset on a VT terminal (Well, there's a one
exception that I recall--a VT330/340 running software multiple sessions will
capture an <ESC>c and interpret it as the soft reset <ESC>[!p. But we got told
that that was a *bad* idea and the old hard reset action came back). But
overall, the terminals are pretty consistent and Richard gave the correct info:

>Mnemonic Command              Sequence (7-bit)    Explanation
>-------- -------------------  ------------------  -----------------------------
> 
>DECSTR   Soft terminal reset  Escape [ ! p        sets terminal to power-up
>                                                  default states
> 
>RIS      Hard terminal reset  Escape c            replaces all terminal set-up
>                                                  parameters with NVR values or
>                                                  power-up default values if
>                                                  NVR values do not exist.
> 
>("VT220 Programmer Pocket Guide" EK-VT220-HR-001, page 33)

Ah, but printers are a different story. First, not all of them even have a
<ESC>c reset: the earlier ones such as the LA50, which started this thread,
LA100 and LA210 all do not. DECSTR had varying interpretations as well through
out the "companion printer" era (LA7x) but would generally get many text
settings (character sets, pitch, tabs, font size, etc.) back to a "known"
default state that wasn't necessarily the power-up state. And then, the Hard
reset (<ESC>c) started to get "softer"....

For the last set of DEC ANSI printers (LA310, LA324/424, LA600, LN05/6/7/8), we 
made those two resets perform the same, soft, function. They set "text and
formatting" features back to a known state but not touch physical parameters
(like tray selection) and downloaded resources (like fonts).

The "harder" reset function moved to a newer command, the DECSCL (Set
Conformance Level) reset state. This reset forced all settings back to the
"known" factory default state for the feature. This is also not the power-up
state, though. 

The "Digital ANSI-Compliant Printing Protocol Level 2 [and 3] Programmers
Supplement" document has a large table describing all of the variables and what
the various reset states bring them to. A clever colleague of mine figured out
how to get the VT5xx manuals online (as Richard Shuford mentioned in his post)
but the DEC ANSI ones aren't yet.

The upshot is that resetting a DEC ANSI pritner can be very confusing. I have
megabytes of internal mail messages discussing the problem but it was never
cleaned up and, well, resources went to other things. [Like PCL emulation, for
instance I still would have liked to get ANSI level 4 done, though. Oh, well.]
-------------------------------------------------------------------------------
Tim Lasko, Digital Equipment Corp., Marlborough MA (lasko@regent.enet.dec.com)
My opinions are my own; the facts can speak for themselves. I'm on my own time.
For Digital printer support: call 1.800.777.4343 or email printers@digital.com



  reply	other threads:[~1995-06-08  4:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-05-24  4:00 LA50 info needed (brief) Tim Thompson
1995-05-25  4:00 ` Ollie Treadway
1995-05-25  4:00   ` Stephen Hoffman
1995-05-27  4:00     ` Don Stokes
1995-06-06  4:00       ` gassner_st
1995-06-07  4:00         ` device control sequences (was Re: LA50 info needed) Richard Shuford
1995-06-08  4:00           ` Tim Lasko, Digital Equipment Corp., Marlborough, MA [this message]
1995-06-01  4:00 ` LA50 info needed (brief) tagoodhart
1995-06-08  4:00 ` Tim Lasko, Digital Equipment Corp., Marlborough, MA
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox