From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 104d8a,26c45eb5a3b9fd46 X-Google-Attributes: gid104d8a,public X-Google-Thread: ffc31,a2f10e53d1d6d42a X-Google-Attributes: gidffc31,public X-Google-Thread: 10cebf,a2f10e53d1d6d42a X-Google-Attributes: gid10cebf,public X-Google-Thread: 107112,26c45eb5a3b9fd46 X-Google-Attributes: gid107112,public X-Google-Thread: 1164f8,a2f10e53d1d6d42a X-Google-Attributes: gid1164f8,public 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 Message-ID: <3r7420$bma@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 104033806 distribution: world references: <3q2ik3$kkd@jac.zko.dec.com> <3q61hn$34n@st-james.comp.vuw.ac.nz> <1995Jun6.185706@ivos02> <3r4l6qINN3ij@duncan.cs.utk.edu> summary: A ramble about resetting DEC printers organization: Digital Equipment Corporation newsgroups: comp.sys.dec,comp.sys.dec.micro,vmsnet.pdp-11,comp.terminals,comp.periphs.printers In article <3r4l6qINN3ij@duncan.cs.utk.edu>, shuford@cs.utk.edu (Richard Shuford) writes... >In article <1995Jun6.185706@ivos02> Steve 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, 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 c and interpret it as the soft reset [!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 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 (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