Digital PDFs
Documents
Guest
Register
Log In
EK-LP100-RM-001
2000
100 pages
Original
22MB
view
download
OCR Version
7.0MB
view
download
Document:
Letterprinter 100 Programmer Reference Manual
Order Number:
EK-LP100-RM
Revision:
001
Pages:
100
Original Filename:
OCR Text
EK-LP4100-RM-001 e = = 2 e % -| s @o«%%m% : @ . 4, by &W {t B [ - Letterprinter 100 Programmer Reference Manual EK-LP100-RM-001 Letterprinter 100 Programmer Reference Manual Prepared by Educational Services of Digital Equipment Corporafion l1st Copyright © 1983 by All The reproduction whole, is information, Department, Maynard, The Rights of contact the in that or copy Services Corporation, @1754. in this document is subject to notice. Digital Equipment assumes no responsibility for any may following Corporation, appear in logo are in this U.S.A. trademarks Maynard, document. of Digital Equipment Massachusetts. DECwriter RSTS DEC DIBOL DECsystem-10 RSX MASSBUS UNIBUS DECSYSTEM-20 PDP VAX P/0S DECmate VMS Professional DECnet VT Rainbow Work DECUS part For Educational Equipment Printed Digital Corporation without Corporation The January Reserved material, ©prohibited. Digital information Equipment this strictly Massachusetts change errors Digital Edition, : 2/83-14 Processor 1983 CONTENTS 1 COMMUNICATION General ® © © © © @ © © 2 © © © © © © © © © 6 © © © © © © © © ®© 9 9o © © © ©6 © 9 o ¢ 9 © @ © © ©» © © © © © o o e o Serial Character Format ceccecocccccocococccocccooccccscsocososcccocsccscscss Break Signal ..cceecoccooccsccococcocsososcscssccscscsscscscssoscsccsscss EIA Interface InformationN ccccecoeosecccocosccccscosscsscscssscsccscssse EIA Circuit JUMPErS cceccoeccoocoscccsccsososcsscsossosccsscssocscsssscsess Connecting the Letterprinter 100 to the Computer ..ccceeccecsoe Modem ConNtrol .cccoccocosocoococcccocsscosocosocscscscocoocscsososcscscscsscscsss Full-Duplex DiSCONNECt cceocoocccocsocscccsocscscccssosccsscscscccscssoso Input Buffer Overflow Prevention .ccccceccccoccccccccccsccscscss XON/XOFF and Restraint .cccccececccccoocccscccccscscs Fill Time FOrmulasS cccecccoccococccccocccocsccsccsccss Determining Fill Time Required ccccececceccccccccocscos Character Transmission TIiMe .cececcscccoccccsccsccsees Fill Time Formula ExXxampleéS c.ccceccecccccccccscssccesse Control CharactersS Escape and Control Special CharacterS Environment DefinitionNS Selection cccocceccoccccccccccccccscoccscsocssos .ccceccocecccccccsccsccccsosscsscsscss Environment CoNvVerSiON eccocecocococcscscscccocsssccccssoo Line Feed New Line Mode .cocscecococccsocsccecsosccoccscscoos Auto Wraparound Mode .ccecccocoscccocsccscoossccococscssc Active Column and Active LinN€ cceccccoccscccccsccoece Horizontal Forms Handling .cccceccecceccceccscococscocscs Print Area@ .coccecocoecococoocccococcosscsccssosccsosococsssscoso Horizontal Margins .cecccscececcccoccscccscsccscscccscscso Horizontal PitCh .ccccccococccocccssccccoccsococccsscosos 1ii I Sequence 7/8 Bit I e © © @ ©¢ © © @ © © © © @ ®@ © ® © © © @ ® © ©@ © © ¢ ® ©®© © ©6 © © © 06 © © © © © © & © 0 © © © 6 & © © © o o Detailed NP OOONOUTE NN ESCAPE AND CONTROL SEQUENCE DEFINITIONS = General ccccccecccccccccscosososocoscssoccsossosscsssososccccscsss w | WwWwuwwuwwww CHAPTER 3 SetS w Character .cccececscocococcococccsccoccccscssoscscssscsosossssscsos SequUeNnCeS .cccececcocococssocoscscsscssocsscsccssos .ccceeccocococcccocccscscososossosocosssscsscocssscs n>Ybom>w ®e © ©¢ © © ® © @ © © ©¢ © ® @ © @ © ® ®© © © © © © © ® © @ © © ® © 6 ¢ © ® o © ¢ ®© © ¢ ¢ ® © 6 6 © 6 @ o @ © Character Handling ..cceccecceccocscocccscocscsosocssccscscscocsosscssss Coding EnvironmentsS .ccccececccosccocccccscssccsscssoscssscscscossssscs Printable CharactersS .cecccoccococcscccoscscsccscssssosscsssssscscsss = General | | =0T 0TS D PROCESSING N CHARACTER = 2 1—14 1—16 N NN | CHAPTER Mo e e e I — = e | | = = — ; S W W NN WO WD CHAPTER Horizontal Pitch Select Mode Horizontal Tabs ® ¢ ¢ @ © ©¢ ® ® 06 ® ®© ® © © © © © © 9 ® ® © 6 o 9 © ® 6 0 © ® @ © Vertical Tabs cceceoo Character Sty1e ®e o ©» © @ © © © © © © © © o 6 © © © © o © © © 6 © © © © o Set Selection Rules Quality Select Mode Select Graphic Rendition Designating Character Sets Invoking Character Sets Error Handling ® © ©¢ ¢ © 6 9 ©® © © @ © ©¢ © 9 9 ®» © © © © © o © 9 ¢ © © © ©» o 9 9 o 3-35 Product Product PROCESSING Strings MOde ..... ® ® © ¢ @ © © ® © © o © ¢ © © © © ©¢ © o © © © @ © © 2 9 © © © © ©o o © © o © o o © o Graphics String Format Graphics Protocol Selector ® © © ¢ © ¢ ©¢ ©¢ ©¢ © © ® 99 © ® © © 6 6 ® 2 © © © o ® ©¢ ©¢ ©¢ ¢ 6 ©¢ 6 ® ¢ 6 © © © 6 © ¢ © 2 © ¢ 9 © © ® © 6 ©® O © Control Characters Printable Data ® 6 ¢ ¢ ® ¢ © ¢ o © 6 9 © © o 9 © ¢ 9 © © © 2 © ® o o 6 6 9 © © O © Repeat DCS Sequence Graphics Graphics Mode Mode Pitch Margins ¢ © ¢ © © © 6 9 ©¢ ¢ 9 © o © © ® © ® ® © © © ® o © 0 © © ceceececeeoeo AnswerbaCk Message Entry Answerback Message Format DCS ® © ©¢ ® Terminator ® ¢ ¢ @ ® ® ¢ ¢ ® o @ ® © © ® ® © © ® 6 © © ® ¢ © © ® 9 ® o © © © 6 © © Introducer Answerback Data Error Protocol Selector ® o © ® ® ®© ®© ¢ © o ©¢ © ¢ © ® © ® ¢ © ® ® ® o © © © © © © © ¢ o © © © © © ® ® © ® © © © © © 9 © ©® © 6 ® © © © © Processing FIGURES 1-1 Serial Character Terminal-to-Host EIA Connecting I N W - in Serial Character Format in Host-to-Terminal Direction @ 6 © 6 ©¢ 2 © ¢ © © © 2 © © © © © © © ¢ ©6 © © © © © © © © © © © e © © © © © o [ s Format @ © 6 ©¢ ©¢ @ © @ ¢ © © © © © © ©2 o © © © © © © © © © © © 2 © © © © © © © © © o S Direction Connector Letterprinter 10#@ - Character Chart (8 Bit) Character Chart (7 Bit) U WN L»UJ?L»UJNDQNJN | 1 Standard Standard Code Extension in a 7-bit Code Extension in an 8-Bit Standard Character Chart Print Area Horizontal Vertical Form/NO to the ® ¢ © © 2 © © © © ©¢ © & © © © 9 © © © © © © © © © © @ © 9 © © o © © © © © 9 o o D& WN Computer ® ®© ©¢ ¢ ¢ ©¢ @ © 6 9 © © ®© © © © © © © © 9 © © © © © ®© ® © © ©® © © © © the and Horizontal Pitch Examples PitCh Form Examples MOde Environment Environment SettingsS .ccceceoscoccsso ® ©®© © © 9 ©¢ © ¢ © ® @ © ©® © © © ® ¢ ® © ©®© © ® © © ..O..O...O....CO.....O'.......'. iv D DD STRING Identification Identification I | MWW J W ANSI Configuration B Font B Data 3-33 3-33 3-35 3-37 3-37 General .. ANSI Control Graphics 3-29 3-39 ReportSO ....... ® ® ¢ ©¢ ¢ ¢ © © o 9 ©¢ 6 ¢ ¢ © ® © © © ® 9 © © 6 © © 6 9 © 6 ® O o Report 4 3-26 3-27 Report Request CHAPTER 3-25 3-26 | B0 = I Character 3-15 3-16 o =3 0 AU WNDHFHWNDHHNDERWND 3—23 3—28 4-4 4—5 4-11 ~J | NN RT TR TR T TR I T AR T R B BN > <. BB S DDA WWWNDNDEEF Vertical Margins and TabsS ccccecccccsccccss cecees Character Density ExampleS cccccccoccccccscocococsecs Graphics Capabilities ..... coeccccccscccccose coecoes Graphics Printhead Use e © © © © © ® & © © o & ©® 6 © © © ©6 © ©© © © © °o Variable Dot SpaCing ® ©¢ © © © ©®© ® © © © © © © @ 6 © ® © © © ©¢ © ¢ © © o o EIA Interface SignalsS .cccceccecoccccccccccsosocsscs Modem Control Effects on EIA Character Transmission TiMeS 1—6 SignalsS .ccccecesoes .ceccccsccccsssscsscs 1-11 1—-15 2—0 CP Control CharactersS .cceecceccoccccoccsccscsccsscsscs Cl Control Characters .ccccecocececcocscsscscsscscocnscss 2—8 MarginsS ..c.cccccceccsccsccccccccscsss Final CharacteérsS cccecececccossscoces oo 3—14 3-32 FunctionsS .ccecccceoscesco ceeccscescscccsscces Introducers/Terminator .ccecceccoececees Dot Spacing as a Function of Pitch .ccceccccoccces Graphics ANSI Control Characters ...e.. coccccsccs 3—34 4-2 4-6 4-9 Graphics Private Control Characters .ccececceseceseces Printable Character ExampleS ..cecccceccocccccsccss Graphics Character Width, Horizontal Pitch, and Horizontal Margin Adjustment ..c.cccceccocococes Text Character Width, Horizontal Pitch, and Horizontal Margin Adjustment ..ccceccecococcccccsoses 4-10 4-12 Maximum Right Character Set Shift ANSI String 4 15 4-16 INTRODUCTION The Letterprinter 100 User Documentation Letterprinter 100 model terminals. This for three The general audiences: ® the and ® ® the operator requiring general the applications programmer control function descriptions. Packages cover all of the documentation is written hardware installer requiring checkout information, documentation for the specific installation operating information, requiring interface Letterprinter 100 is divided into and three books: ) ® 2] Installation Guide Operator Guide Programmer Reference Manual The interface and character processing information you will need for your Letterprinter 100 terminal is described in this manual. The programmer writing application software should use this manual as a reference. As the following manual is on the of chapter titles indicate, the emphasis in this communication and character processing features the Letterprinter Chapter 1 100 terminals. Communication communication -- describes the terminal interface and features. Chapter 2 Character Processing -- generally describes the terminal response sequences, to printable and control characters, strings. Chapter 3 Escape and Control Letterprinter 100 escape and control characters, Sequences -- describes control sequences. escape in detail the Chapter 4 ANSI Control Strings -- describes how the Letterprinter 100 processes ANSI control strings. Describes message encoding and graphics processing. vii in detail answerback WARNINGS, In this specific to CAUTIONS, manual, purposes: prevent AND the warnings personal to NOTES warnings, injury; prevent damage the general information. cautions, are used cautions terminal; and viii to and notes highlight highlight notes are used for information are used information used to used to highlight CHAPTER 1 COMMUNICATION GENERAL The Letterprinter 100 communication interfaces and terminal communication features are described in this chapter. These used to configure the Letterprinter 10@ terminals to features are operate with received by also specific these computers. terminals to The methods avoid input of controlling buffer data overflows are described. SERIAL CHARACTER FORMAT The Letterprinter 100 communicates using serial characters (Figures 1-1 and 1-2). The serial character format for the terminal must match the character format used by the computer. Serial characters are transmitted from the Letterprinter 100 to the host using a start selectable parity bit and Serial characters start bit, 7 or and 1 stop bit. Stop bits are characters. are 8 received data a Your bit, 7 or 8 2 stop bits. bits, minimum by an data the 100 an Letterprinter optional, guaranteed Letterprinter bits, 100 selectable idle time Terminal optional, between will the When host-to-terminal sending idle bit cope. NOTE: Two idle time may be far characters per second, time GRS W SRR between GEERD SRS GINUILS MM than two MO TN CDU bit M bit two CIMEI_ SGTEIL CEmm times. your Letterprinter times is larger between at a Terminal characters guaranteed than any baud characters SIS less stop stop bits will always so that slower the actual | times IS WSROI two direction. characters, transmit two equipment can 1 bit communicate without difficulty with any equipment requiring two or bits in the terminal-to-host direction and one or more in using parity G CTm— CIC SN S A — minimum; two bit rate greater when TN TIINIS WSS fme G CDUET) times. 600, the transmitting in T SITETD SEETE GCTWESR NN SN than Because TN WOREEY e wpee e idle your idle S the SE—— SR—— — VARIABLE IDLE TIME (DEPENDS ON TRAFFIC) IDLE 2BITS ls_mETE oF (MINIMUM 70R8 DATA BITS SPACE + faa _"MARK" - START —-r—-f—v—-r--r—'r"j"r"" ST NEW CHARACTER IDLE TIME) Y tsg) 01 1 021 03] 041 05| 06 |M°gBI , START BIT OF GUARANTEED | SR aiT T R ONE BIT IME TONE/“ BAUD RATE RIS SEN A OPTIONAL 8th BIT St 4 § f ! | ‘ISTPPISTZOPI » OPTIONAL PARITY l BIT ! T | RETURN TO IDLE STATE OF LINE MA-7815—C Figure 1-1 Serial Character Direction Format in Terminal-to-Host VARIABLE IDLE TIME (DEPENDS ON TRAFFIC) IDLE 1BIT STATE OF (MINIMUM LINE GUARANTEED | START BIT OF 70R 8 IDLE TIME) DATA BITS SPACE + "MARK'' & l NEW CHARACTER AL .raa-r—-r—-r—-r—-r—T—T:j'T-—- i |L58|o1|02|03|o4l05|06|w?g8| R S START BIT = U N ONE BIT TIME = ONE/ [ [ ST10P| Lo5p1i0NAL RETURN N TO IDLE SRR OPTIONAL 8th BIT SR § , /, PARITY . __y__ | STATE OF LINE BAUD RATE MA.7815-8 Figure 1-2 Serial Character Direction Format in Host-to-Terminal When receiving characters, by only one idle bit time. NOTE: One time may NOTE: refer idle bit be far time your is terminal can accept a minimum requirement; data separated the actual idle larger. If you are using the LA10X-ED to the option installation Parallel Interface option, guide for character format information. The data bits represent a 7 or 8 bit character, least significant bit 1leading. The parity bit 1is operator-selectable. For more detailed information, refer to the Letterprinter 100 Operator Guide. BREAK SIGNAL A break +10 signal percent. the is a The computer transmitted computer and the Letterprinter 100 sends EIA INTERFACE INFORMATION The Letterprinter space response to software a break terminal condition for the signal break wused. signal operates If when on @.275 seconds depends selected, a paper fault full-duplex, on your occurs. asynchronous communication lines. The EIA interface connector is a DB-25 male 25-pin connector mounted on the back of the terminal (see Figure 1-3) . The terminal EIA interface signals meet the EIA specification on Telephony requirements and Telegraphy RS-232-C and (CCITT) the Consultative Committee recommendation V.24, NOTE: The 20 mA current loop interface makes it possible to connect your terminal directly to a computer up to 300 m (1000 ft) away without the use of a modem. The EIA connector signal, that are as the used signals by the communication also discussed Protective Ground This circuit also connected power cord. Transmitted is in Data (PGND) Direction: From terminal Signals this circuit are on generated Received Data by To Signals this are on generated the (RXD) Direction: -- =- have Pin to the Table chassis of | and 1-1. Each the effects EIA control signals the terminal. 1 the grounds Pin in terminal, on section. external (TXD) summarized features this connected to are Letterprinter through the third wire It of 1is the 2 represent serially encoded characters that serially encoded characters that terminal. -- Pin 3 terminal by circuit the represent user's equipment. J O0OO0O0OO0OO 0O OO0 O0O0O0OO0O0ODO0OOOOO OO0 \/ — PIN 14 (o 0O OO0 v PIN 1 25 PIN MALE CONNECTOR 1 Al df o | MA-7255 Figure 1-3 EIA Connector Table 1-1 EIA ' Interface Signals ‘ Name 1 Protective Ground PGND 2 Transmitted TXD 183/BA LA100@ 3 4 5 6 7 8 Received Data Request to Send Clear to Send Data Set Ready Signal Ground Receive Line RXD RTS CTS DSR SGND RLSD 104/BB 195/CA 196/CB 107/CC 102/AB 199 /CF User LA10@ User User 9 19 11 Signal Detect No Connection No Connection Restraint BUSY 12 13 14 15 16 17 18 19 Speed Indicator No Connection No Connection No Connection No Connection No Connection No Connection Secondary Request to 20 . CCITT/EIA Mnemonic Designation Pin Data - Source 191/AA User LA10@ SPDI CI User SRTS 120 /SCA LA1OO DTR 198.2/CD LAl1Q0 SPDS 111/CH LA100 Send Data Terminal Ready 21 No Connection 22 No Connection 23 24 25 Speed Select No Connection No Connection Request to Send (RTS) Direction: From terminal -- Pin 4 When the RTS signal is on, the terminal is ready to send data. Clear to Send Direction: To (CTS) -terminal Pin 5 This monitors the CTS circuit response to terminal will modem Data RTS. not control Set To The DSR not transmit modem transmit (DSR) -- signal generated control any CTS is Pin 6 codes CTS is the assumed to be if always by selected, the not modem in Letterprinter on. With no on. terminal signal is or control indicator modem selected, Ready Direction: With on when selected, light the receive goes on data data set until is ready. this DSR is always when the DSR The signal assumed signal to is terminal will is on. With no be on. The DSR potential for received. Signal Ground -- Pin 7 This circuit establishes all interface a circuits. This the protective ground Recelive Line Direction: The RLSD carrier this signal to Detect is an is on. indicator With (BUSY/READY) From no -- restraint computer When goes off, the Indicator (SPDI) Direction: To With mode speed the Pin that terminal SPDI 1s off. ragardless useful of when to received the 8 the modem will not control has receive selected, data RLSD until is always 11 selected, should computer -- Pin the on condition temporarily can resume stop sending of BUSY sending data. data. 12 terminal disabled, your terminal operator your is modem signal the at -- terminal Pin that Speed connected terminal indicates BUSY reference permanently on. Restraint the (RLSD) Your Direction: With is circuit. signal. be ground circuit terminal signal data assumed Signal To common selected baud rate. With operates at the operator However, your the you rate using terminal selected variable speed ignores will when SPDI and operates the speed mode selected, selected baud rate when operate SPDI modems is such as at on. the 1200 This Bell baud feature 212-A. Secondary Request to Send Direction: From terminal Same as Restraint Data Terminal Direction: When the data. or the Speed Ready From DTR When (pin -- -- 20 Pin 19 11) (DTR) Pin terminal signal is on, DTR is off, terminal is local. Indicator Direction: (SRTS) (SPDS) From your your -- Pin terminal terminal is 1is capable processing of a receiving disconnect, 23 terminal With the terminal speed mode selected, and the receive baud rate of your at 1200 baud or higher, the terminal turns SPDS on. Otherwise SPDS EIA CIRCUIT is kept off. JUMPERS For special applications you can physically following EIA circuits by removing a jumper: Protective Busy Speed -- When the EIA -- Pin EIA to EIA connector connector Send Pin Guide the 1 11 -- EIA connector Pin Pin 12 connector Pin 19 23 the EIA circuit jumpers are removed, test fails. Refer to the jumper removal Installation jumpecrs. -- Request Select any of control line -- connector Indicator Secondary Speed Ground EIA disconnect before removing any of the the loopback procedure in EIA circuit CONNECTING THE LETTERPRINTER You can directly connect the or through a shown Figure loop in interface To connect you will 1-4. can your need 100 The be EIA used THE COMPUTER interface in terminal to modem (data a TO Letterprinter 100 terminal to a common carrier facility (telephone both a or optional 20 computer line) as mA current applications. computer through set). modem The a telephone changes 1line, the serial characters transmitted between the terminal and the computer into that can be transmitted over the telepone lines. Several signals types of modems can be used with your Letterprinter 100 terminal. the modem you select must be compatible with the modem However, used by NOTE: the computer. Some modems do either permit parity. Therefore, of Letterprinter your Your terminal communication are used 7 not data it is Letterprinter CONTROL bits or important and to the plus 8 check modem parity; data the bits they and no compatibility settings. also be compatible with the computer and the system. Operator-selectable communication switches achieve MODEM data parity must to to 8 plus terminal the Refer permit bits this compatibility 100 for Operator the Guide Letterprinter for more 100. details. When on-line, the Letterprinter 100 1is connected to the communication line and is capable of receiving and sending data. It communicates with EIA compatible asynchronous communication lines. devices Your types terminal supports two Dbasic on full-duplex of full-duplex communication -permit data to be with and without modem control. Both methods transmitted and received at the same time. When full-duplex with no modem control, data transmission you select and reception is always enabled when not in 1local. Full-duplex with modem control requires that both your terminal and the recognize the proper EIA signals before transmitting data. 1-2 shows EIA control the effects signals. that the modem/no modem feature When you select no modem control, the terminal communicate directly with a computer (null modem or with full-duplex modems that do not support ready) or RLSD (receive Modem control permits such as Bell the line your 103, signal 212, on the allows you to configurations) DSR (data set indicator). terminal the has modem Table to the communicate through Vadic or equivalent when operating 3400, modems modems. NOTE: with The the 20 terminal mA must current be loop set to no modem communication control option. COMPUTER TERMINAL COMPUTER TERMINAL MA-7776E Figure 1-4 Connecting to the the Computer Letterprinter 100 Table 1-2 Modem Control Effects on EIA Signal EIA Signals Modem No Modem Control DTR active active RTS active active TXD active active RXD active active active DSR inactive CTS inactive active RLSD inactive active Key OFF Signal off Active Signal turns on On Signal on EIA Inactive Signal at at EIA connector or off depending on terminal but terminal connector ignored at internally forces EIA connector signal on. 1-11 state. FULL-DUPLEX A DISCONNECT full-duplex disconnect Terminal is Ready) performed ® RLSD & Wrong number on within 20 ® If turns the paper ® If @ after DTR for more off time out is #.2 seconds turning plus the seconds. on than (DSR two is seconds on, then RLSD does not turn seconds) paper out your EOT off least by (data set ready) delay time, but not longer than 2 following conditions cause a full-duplex disconnect: turns at terminal DSR The DSR for the (Data ® off by DTR fault switch condition Letterprinter control is set to disconnect and a disconnect 1is occurs character terminal is switched received while to coded local enabled. INPUT BUFFER OVERFLOW When your than the 400* character NUL characters terminal and DEL terminal buffer. are removed from falls behind by overflows. If single SUB character tone sounds. 1. 100 characters), 1input buffer There are PREVENTION Letterprinter the the overflow is placed XON/XOFF source when data. Using to vyour input character (other character in its ready, the terminal buffer 400 and restraint XON/XOFF printed. If the the input character is lost: a and the bell buffer feature stop or is characters, input buffer temporarily the a the occurs, the in the input avoid or stores than an three ways you can Use When more receives 1t or overflows. to signal to resume sending feature allows restraint the data maximum throughput and eliminates the need for fill character calculations and message size 1limits. These features are explained in detail later in this chapter. 2. Send data receiving density density only data as at fast 2400 mode or 300 mode, your character reception. form feeds are not received at rates processed as as it can be baud or less while baud or terminal However, less can short printed. in while in keep up 1lines rapidly either. In such 1low the with high the and processed this rapidly. greater than 2400 baud When the multiple Characters cannot be instances, you can use fill characters to slow down the effective data transmission rate. You will find fill time formulas in the following section entitled "Fill Time Formulas." Note: 4096 . When using the LA1@X-EB 4K buffer option, this number is 3. Limit input the number of characters in the message to the buffer size of your terminal. If the buffer 1is empty at can the receive beginning a message of of thg transmission, 400 characters the without terminal a buffer prevent input overflow. XON/XOFF The and Restraint and restraint XON/XOFF buffer overflows. restraint signal, characters computer sets the your stored to When in features you terminal the are select used the constantly input buffer. to XON/XOFF monitors The and/or the terminal the number signals of the stop sending data (sends XOFF control character or signal to on) when any of the following conditions BUSY occur: ) Number of characters in the input buffer exceeds 200% characters ® The Terminal terminal transmits signals (sends XON control any the following of ) When than @ When the on-line). XOFF the and Refer to the Fill Time When receiving or conditions restraint is signal 100 receives 60 to resume the BUSY signal the input sets characters. data transmission to off) when occur: characters terminal Letterprinter then computer character the number of 30 characters XON/XOFF and in switched are on-line buffer (or Guide for less powered operator-selectable Operator is more up features. details, Formulas data at 2400 baud or less, your terminal up with normal character reception. Short lines feeds cannot be printed this rapidly. However, characters. Fill characters do are stripped out of stream * Note: When using the data not the LAl0X-EB 4K 3584, enter upon the can keep and multiple you may use form fill input buffer; buffer option, this number | 1-13 they reception. is The Letterprinter 100's printhead and form movements (horizontal and vertical) are directly related to the fill time required to slow down the effective data transmission rate. The fill time required to compensate for these movements of fill characters needed using the can be converted to following formula. number Fill Number of Fill Characters Time other NUL is the characters only may Required = Character NOTE: the recommended seem to fill achieve Execution Time character even the same time sequences) though result some 1in special for horizontal movement in the cases., Determining You can Fill Time determine (including tabs and required determine the 15 for each of 6, 6.6, actual the pitches: 5, (11 ms double-width You can in determine (includes 1line positioning First, using the for 5.5 each time for fill tabs, form way. the ms for vertical in the following number in way. Then, allow double-width additional column of lines moved to vertical feeds, actual and movement vertical distance moved formula. of Lines Moved = pitch line Character Transmission Time The character transmission time based It a ms moved. (39 required allow 38 ms for the first each additional inch. on columns following pitches). Vertical Then and of columns the following Moved 10 feeds, Number Inches number first 8.25) sequences) convert fill positioning First, ms Required the given baud rate. is is moved up 1/6 and 200 ms given in milliseconds and is the time it inch, takes character to the terminal. Character transmission applicable baud rates are shown in Table 1-3. to transmit times at a the Table 1-3 Baud Rate Character Transmission 110 90.0 300 690 33.3 16.6 1200 8.3 1800 5.5 2400 4.1 4800 9600 2.0 1.0 NOTE: of fill Character times Transmission Times transmission only. Times (msec) times are provided for calculation Fill Time Formula 1. Examples Horizontal Assumed movement values: Baud Rate = 1200, Horizontal Pitch = any single width pitch (10, 12, 13.2, 16.5). Also assume that horizontal tab stops are set at columns 9, 17, and 25 and printing begins at column 9. If the next two characters received are TAB TAB, calculate the number of fill characters required in the following way. First, calculate the following formula. Final column - number Current 25 Then 5.5 15 allow ms ms per 15 X 10 6 33 ms 5.5 ms 150 + The fill Next, ms per column X Column - 9 = column for the for required is 183 the fill time time found in The Fill number Characters of number fill to Twenty-three two the remaining divide this Number moved of using Columns the Moved first 10 columns and columns. 150 ms 33 ms = 183 ms time of = columns 16 transmission Number of required Table next fill by the character 1-3. Required characters the (23) ms. 183 ms 8.3 ms = required whole characters is number, (NUL) 22.04. which Round is should follow Vertical Pitch 23. the tabs. Vertical Assumed Movement values: Baud Rate = 1200 baud, = 6 lines per inch and paper is set to line 1@0. Also assume that the next characters received are nine line feeds. First, calculate the actual distance moved following Lines Number of Inches Moved moved = Vertical 9 11/2 inches = Pitch using the Then allow 38 ms for the 200 ms X 1 2/6 266 ms + 38 ms The fill Next, remaining time for the inches = = of 266 1/6 inches inch moved ms required is divide the £fill time found fill 304 number of ms time in ms. required Table by characters fill required characters character ms = required this number to the next whole Thirty-three (33) fill characters nine line feeds. 1-17 the 1-3,. 8.3 The 200 ms 266 of and moved. 304 transmission Number first number ms is 32.04. Round number, which is (NUL) should follow 33. the CHAPTER CHARACTER 2 PROCESSING GENERAL The response reception is processes from of vyour Letterprinter 100 described in this chapter. characters the in American accordance National with Terminal to character The Letterprinter 100 the Standards following standards Institute (ANSTI) : X3.64--1979, X3.4--1977, and X3.41--1974. The ANSI system defines a standard character chart shown in Figure 2-1. Figure 2-1 shows each character with 1its binary, octal, decimal and hexadecimal values. NOTE: The Standards Committee ALPHABET The processes to section used to Previous a received character as defined by ANSI. The position chart determines the type of character or control character. addition this are 5. terminal character character printable In character chart corresponds to the International Organization (ISO) Standard 646, and the Consultative for International Telephony and Telegraphy (CCITT) the defines provide DEC printable characters escape control and additional terminals based on the type of of the character in the character as either a and control sequences. characters, These sequences controls. functioned with 7 data bits only. The 8th bit when present either was ignored or set to an irrelevant value. Your Letterprinter 100 Terminal, however, can function in a full 8-bit mode with a repertory of 256 character codes. It can also function in the 7-bit mode (128 codes) if necessary. CHARACTER HANDLING A character sent from the computer to the terminal, first goes through the application program, then through the terminal handler of the computer, then through the character processor of the terminal, then finally creates a terminal action. To know exactly what action is caused by a character your application program, you have to make sure following parts of the system are set properly: Application program Transmitting part of the terminal Receiving part of the terminal General terminal settings To set the terminal, Operator operating your For Guide; system to refer set guide; to application guide. to the that sent all terminal the the handler this book and the Letterprinter set from of handler, application refer program, to 100 your refer to example: A form feed control character (octal 014) sent from the application program may not be executed by the terminal because the terminal is not set for form handling, or because the terminal handler is set to change form feeds into multiple line feeds. An escape control character (octal @33) may be changed into a dollar sign by the terminal handler or the application program. | Horizontal tab control character (octal @11) may be changed into spaces by the application program or the terminal handler, or may not be executed because no tab is set in the terminal. Lowercase CODING characters may be changed into uppercase characters. ENVIRONMENTS Previous DEC terminals functioned with 7 data bits only. The 8th bit when present either was ignored or set to an irrelevant value. Your Letterprinter 100 terminal can function in this 7-bit mode with a repertory of 128 codes (Figure 2-2). The terminal can also function in a full 8-bit mode with a repertory of 256 character codes (Figure Character 2-1). codes in the octal range of 000 to #37 are collectively known as the control set C@. Character codes in the octal range of 200 to 237 are collectively known as the control set Cl. Character codes in the octal range of @41 to 176 are collectively known the graphic set GL. Character codes in the octal range of 241 276 are collectively known as the graphic set GR. as to Accordingly, control process in addition to the 7-bit GL graphic codes and C¢ codes, your Letterprinter 100 terminal can receive and 8-bit GR graphic codes and Cl control codes. The graphic codes represent printable characters. The control characters not printable; they start, modify, or stop terminal operation. are B8 B7 0 0 0 B5 0 BITS COLUMN B4 B3 B2 B1|[ROW 0) 0 00 O0]O NUL 001 1]3 4 7 101 0l o1 1 | 4 20 30 40 50 1 21 41 61 101 121 gg'\,‘)' 17 32 ! 33 Y 1 48 49 @ 64 A 65 120 P 80 Q 81 1 11 2 2 22 2 12 22 32 42 52 3 3 23 g&g 19 43 63 103 123 3 13 23 33 43 53 2 4 44 64 104 124 T 18 a 0 1 0 7 140 1 1 8 0 9 200 220 60 70 80 90 141 161 201 221 97 P q 112 \\ 128 | DCS | 144 113 129 145 | 160 I\ i © T 1 0 11 240 ¥ L 1 1 10 160 96 0 1 1 12 260 176 /\\ 1 , 1 1 13 14 300 320 192 208 - -g 15 340 BO Co DO EO 241 261 301 321 341 <+ 177 [\ 193 N 209 3 360 224 AO 161 T 1 0 240 | FO 225 N 361 ) 362 n 241 21 31 41 51 61 71 81 91 A1 B1 C1 D1 E1 42 62 102 122 142 162 114 202 130 222 242 262 178 302 A | 194 322 342 62 72 82 92 A2 B2 C2 143 163 115 203 131 223 243 263 BREE 63 73 83 93 A3 B3 c3 D3 E3 F3 144 164 204 116 | IND | 132 224 148 244 264 304 324 344 364 74 84 94 A4 B4 Cc4 165 205 225 245 265 305 75 85 95 A5 166 118 206 134 226 150 246 76 86 96 A6 167 119 207 135 151 97 A7 230 34 £ N 0 1 6 10 SP 100 1 0 5 0 16 60 1 0 1 20 35 2 3 50 51 8 66 C 67 R 82 S 83 b 08 ¢ w| r S 146 147 ¢ 162 £ 2 163 3 179 A |19 6 210 a D2 P o) 323 211 F1- 226 242 E2 N a 3; § 343 227 o 243 14 |ENQ|; 5 25 5 15 25 35 45 55 65 6 6 26 22 46 66 106 126 146 6 16 7 7 27 7 17 27 37 47 57 67 77 87 10 s |CAN| 30 50 70 110 130 150 170 210 8 18 78 88 11 | 25 171 211 231 9 19 29 69 79 89 99 A9 |27] B9 & | .| co D9 E9 F9 32 w| * | e 152 172 212 232 252 272 312 33 2 352 372 A 1A 2A 8A 9A 13 33 HT |5 VT Yo 3 FF 14 34 T 1.01 ]13 | 105 125 40 51 41 52 27 1B 53 43 | 54 CR 13 D 29 _ 1D T 1.1 0|14 SO 14 16 36 ‘ 46 E 1E . si 17 |7 37 > / el SET KEY [ 8 67 55 | F 56 9 . . 9 71 57 | 70 U - v 86 46 107 G 71 H | 38 | 111 5] 100 127 w 87 X e f | 145 101 102 147 9 oz h | 4] 58 68 89 . ! 151 05| 121 J | 4] 112 132 06| € | 122] 3A 4A 5A 6A 7A 73 113 133 153 59 K 60 3C 75 Z o] [ o1 4B L 114 k 107 58 \ 134 4C 76 . 110 3E 77 63 3F O 4E 5E 117 137 ] 4F sl | O el a (0] AA | O 185 173 .. 236 187 274 V%) 174 276 ’I\ 316 AE 257 . 277 159 175 ¢ 191 9F AF 6F ASCIl GRAPHIC CHARACTER SET 7F 8F ADD’L CONTROL SET g U CB i 9E 5F 203 189 190 R R cC 237 | APC | 214 BE 204 205 CD 'U' Y 206 BF CF 331 230 F5 246 E6 3;3 347 o | 247 231| |22 g | 28 ES F8 351 |28 @ 333 371 G | e |28 { .. 3563 R 37 - ] 354 2E3§ u 2§>§ 221 T 3565 . 375 336 T 356 DA 219 DB 334 220 |33 DD 222 CE 2071 & A DC . DE 317 .I. |216] G D8 313 35| BD @ [ CA BC 8E 143 0O 22| 275 217 | |201] 314 7E SS3 E |20 I 177 15 198 - 6E DEL | E 273 V4 | 188 172 » E F BA 254 171 C fwe| 234 « 253 1 157 11| '0‘ 366 311 |19 214 126 SS2 | 42| ae 346 271 251 © 174 176 326 c8 124] PLU | 140 | ST | 156 = .o B8 184 BB 156 306 A8 256 n 94 | s XX | 168 PM | 158 136 &G E5 08 216 A |20 152 AD 116 & D5 F7 9D N |23 370 8D 76 § c5 F4 350 141 | OSC | 157 > 365 330 AC 56 _ 310 AB 7D 345 270 PLD | 139 | CS1 | 155 R1 325 250 98 1251 |197] ~ E7 183 8B } o | 244 E4 D7 267 7B 109 28] c7 © 233 123 jia B6 213 173 175 6D 182 g D4 B7 255 5D 266 A 212 CE | 215 aC m B5 o) 199 235 93 || 196 307 8C ] 1 167 215 77 M 247 § 7c| M 78 166 6C | | }_\' 32? 183] VTS | 138 Jes| 5C 108 61 62 137 180 C6 227 ‘ ¥ 154 = 4D o] 164 1 92 45 3D { 6B 155 2F Y 1200 HTS | 136 58 135 I X 72 115 57 W 59 3B 2E v 117 1 NEL | 133 49 75 2D u 66 88 131 Y t 64 56 48 I d 39 - 35 ASCII CONTROL 7 55 15 2C E 36 74 1C . 54 < C 1F 6 | w| ’ F 5 28 28 30 84 65 28 + T 45 47 ) 68 54 39 ( b 44 38 ; 52 34 26 31 ESC 4 24 - & 3, SUB 36 0 23 12 LF $ o B 1 100|12| 0 3 40 1 0 20 BEL | 1 2 1 0 4 1 000|g | BS 1 oo 1| 0 1 4 011 0|6 o1 1 1] 0 0 0 1 o101]s 1 0 0 01 02 0 0 1 0 00 1|1 010 0] 0 0 EA 2:3 |23| Fg T 237 25; 374 y ED 253 3FI; 238 254 7 325 S 337 B |20 3;7E \ °° DF 239\ 255 EFN FF DEC SUPPLIMENTAL GRAPHIC SET DEC MULTINATIONAL CHARACTER SET AI > ASCII CHARACTER| ESC | 33 | OCTAL l 27 | 1B 1 HEX | DECIMAL MA-10,087A Figure 2-1 Standard Character Chart (8 Bit) B7 0 B6 0 B5 0 0 BITS COLUMN B4 B3 B2 B1|ROW (0) 0 00 O0}O NUL 0 0 1 2 0 20 0 10 0 1 000 11 DC1 1| 0 01 0] 2 010 1|5 0110/ o1 1 1]|7 100 0] 8 1 001109 10 1 0110 o1 110 1|13 11 BEL 40 50 60 70 21 i 41 1 61 101 121 41 51 8 | 7] A 161 31 g1l 141 102 122 b 142 r 20 . | a3 T 42 21 61 82 98 52 62 = 43 63 51 103 33 67 123 43 53 63 64 52 104 44 84 54 d 144 34 68 124 65 105 45 85 e 35 69 125 55 66 106 126 86 3 13 4 24 20 14 5 25 5 15 21 # 35, $ 44 o 45 (1) 3 23 36 4 24 37 25 S 53 83 c 143 P 112 160 |13 71 162 114 72 S 163 100 t 164 145 101 u 165 § 146 102 y 166 118 66 76 g 1471\ 103 167 99 64 115 73 65 116 74 117 75 6 26 6 22 38 54 70 6 16 26 36 46 56 7 27 67 17 71 127 7 55 107 27 37 47 57 67 77 70 56 110 150 170 38 72 130 48 58 71 111 131 39 23 30 & / 46 47 39 CAN 24 ( . | 11 25 31 ) 41 18 HT | | 9 Sl 96 66 8 19 51 9 29 ¥ | 52 A 1A 2A 13 | ESC | | 32 27 42 + 7 8 {SUB | 32 26 6 40 28 12 10 53 43 . . ? 57 73 87 88 h . 104] 68 151 X 119 120 78 171 49 89 59 d 105] 72 112 132 - 152 3A 4A 5A 73 59 113 75 133 3B 4B 58 6B 7B 74 114 134 154 174 3C 4C 5C 75 115 135 58 74 90 91 J k 69 106 6A Y ,z 153 121 79 172 122 7A 173 107 123 B 1B 14 34 C 1C 15 35 45 61 77 o3 D 1D 2D 3D 4D 5D 16 36 56 76 116 136 14 30 46 62 78 94 110 E 1E 2E 3E 4E 5E 6E 7E 17 37 57 77 117 137 157 177 3F 4F 5F 6F 7F 12 | 62 140 42 8 | 65 S 50 BS CR 49 80 32 50 FF 30 120 34 7 LF 2 64 22 10 0|14 111 1|18 100 18 ENQ 5 SO 1 43 12 4 lu ) VYT 1 100112 60 2 4 6 7 Y 3 | (XOFF) | 19 01 00|34 3 40 1 32 22 |'pDCc3| 1 1 2 3 001 1]3 0 SP 11 2 1 1 16 om | 17 1 0 1 28 13 29 15 31 F 1F 2B ’ 54 44 2C _ . / 55 47 2F < _ > ? 60 76 63 79 92 95 1 108 6C I 124 7C 155 175 M 109 125 n 156 o 6D 7D e 111 DEL 176 126 127 ascll CHARACTER| ESC | 23 | °C¢TM* 27 | DECIMAL 1B § HEX MA-7247 Figure 2-2 Standard Character Chart (7 Bit) Note that all of the functions are available in either in the 7-bit environment, coding is less efficient in codes are required to achieve the same results. There are features of three features govern transmitted Data Bit the Selection Transmit Cl Receive Enable Enable These features are and Receive Enable PRINTABLE select of the coding received that environment. data and the but more These encoding data: Cl Cl that processing mode, (communication switch selectable) (escape sequence selectable mode) (escape sequence selectable mode) described in detail in the Cl range of Transmit Enable sections. CHARACTERS Characters in characters in the GL the graphic GR set graphic (octal set (octal usually cause the Letterprinter 100 to on the paper. Your terminal receives range @41 to 176) and of 241 to 376) display (print) a character these printable characters and stores them in a line buffer. These characters when one of the following conditions occur: & @ no character paper motion &) overprint received command for more (except than 30 are printed ms underline) If the active column is not greater than the right margin, each received character 1is printed and the active column is incremented. The actual character printed depends on the character code received, CONTROL Cl in the control Letterprinter not printed. control with font selected, and C@ set the control of control set (octal it Letterprinter responds listed by set selected. The in each control character control characters Each control function The mnemonic is an and are to 037) and Terminal the associated 100 2-1 000 the are receives a Letterprinter Tables of 237) usually cause Control characters performing tables. All other cause no action. mnemonic. range range of 200 to perform some action. character. characters function name. character (octal 100 to When your character, control NOTE: the CHARACTERS Characters the the action 100 2-2. also received responds The to the mnemonic and listed in by terminal mentioned in this abbreviation of the the manual control these has a function Table 2-1 C@ Control Characters Name | Mnemonic Octal Code Function Null NUL a0 Used as (see Chapter fill characters 1, communications) . Start of heading SOH 001 No action Start of text STX Ga2 No action action End of text ETX K No End of transmission EOT ga4 Used as disconnect character if enabled. ENOQ @335 Enquiry Request answerback message. Acknowledge ACK 206 No action BELL BEL @da7 Sounds audible bell tone. Backspace BS 310 Moves the active column left in Horizontal tab HT g1l1 one column (except graphic mode). Advances to next horizontal (except in tab stop graphic mode) . Linefeed LF @12 Advances to next line. Performs return (except carriage 1f enabled in graphic mode) . Vertical tab VT @13 Advances to next vertical tab stop (except in graphic mode) . Form feed FF 314 Carriage return CR @15 Advances to next top margin (except in graphic mode) . Returns to left margin. Performs line feed enabled (except in graphic mode) . if Table 2-1 C@ Control Characters Name Shift out (Cont) Mnemonic Octal Code Function SO @16 Maps G@ to character Shift in Data link escape Device control 1 Device control 2 Device control 3 Device control 4 Negative of (XOFF) acknowledge Synchronous End (XON) idle transmission Cancel block GL printer set. SI @17 Maps Gl to GR printer character set. DLE G20 No action DC1 @21 No action DC2 @22 No action DC3 @23 No action DC4 @24 No action NAK @25 No action SYN 226 No action ETB @27 No action CAN B30 Immediately control or ends any escape sequence. End of medium Substitute EM @31 SUB @32 No action Immediately control or sequence. received are Escape ESC @33 L1} 1% any Characters with replaced enabled. as ends escape SUB or Introduces as errors by SUB 1is printed 11} an if 1] . escape sequence. File separator Group separator Record Unit separator separator Delete FS @34 No action GS @35 No action RS @36 No action Us @37 No action DEL 177 No operation (Not stored in input Not be used to filler) . buffer. as Table 2-2 Cl Control Characters Octal Name Same as ESC @ Mnemonic Code Function reserved 200 Reset parser with no action Same as ESC A reserved 201 Same as ESC B reserved 202 Same as ESC C reserved 203 IND 204 Index Reset parser with no action Reset parser with no action Reset parser with no action Increment active line and advance paper line feed new has no effect -- line mode on this feature. 205 NEL Next line Set active column to left margin increment and active line Reset parser with no Start of selected area SSA 206 End of selected area ESA 207 Horizontal set tabulation HTS 210 Set horizontal tab stop at active column. Horizontal tabulation with justification HTJ 211 Reset parser with no action Vertical VTS 212 tabulation set Partial line down *PLD f 213 action Reset parser with no action Set vertical at active tab stop line Index paper up .212 cm (1/12 inch) -- line feed new line mode has no effect on this sequence. Partial line up *PLU 214 Index paper down .212 cm (1/12 inch) -- line feed new line mode has no effect on this sequence. Table 2-2 C1l Control Characters (Cont) Octal Name Reverse index Mnemonic Code Function RI 215 Decrement and move line line active paper -- line feed feed had no effect on line down one new this sequence., Single shift Single 2 shift SS2 3 SS3 216 217 | Device control string DCS 220 Activates G2 set character for 1 Activates G3 set character for Device 1 DCS use 1 PU1 221 Private use 2 PU2 222 character control introducer Private character string (Refer to processing) Reset parser action with no Reset paréer with no action Set transmit state STS 223 Reset parser with no parser with no action Cancel character CCH 224 Reset action Message Start waiting of protected area MW 225 Reset parser action with no SPA 226 Reset parser with no parser with no parser with no parser with no parser with no action End of protected area EPA 227 Reset action Same as ESC X reserved 230 Reset action Same as ESC Y reserved 231 Reset action Same as ESC Z reserved 232 Reset action Control sequence introducer CSI 233 Used to gain extended functionality through control sequencing. Table 2-2 Cl Control Characters (Cont) Octal Name String terminator Operating system Mnemonic Code Function ST 234 Ends any pending ANSI string, reverts to text processing mode. OSC 235 Start 0OSC (See string command Privacy message PM 236 Application APC 237 program command string. processing) Start privacy message. (See string processing) Start application program command. string processing) (See * NOTE: PLD and PLU do not modify active line or the position counter. To maintain proper vertical form handling, send as many PLDs as PLUs. 2-10 ESCAPE AND Escape CONTROL and SEQUENCES control sequences are used to provide additional controls not provided by the control characters in the character set. These sequences are multiple character control functions that are not printed but are used to control the printing and processing of characters. Escape and control sequences are defined in ANSI standards X3.41] 1974 and X3.64 1979. Refer to Appendix A for more detailed information on escape and control sequence processing. Definitions of the Letterprinter 100 escape and control sequence functions NOTE: If of sequence, the character an escape will it have. are provided or control is not It is in sequence clear recommended For example, some The sequence ESC C systems then or echo becomes the CTL ESC 3. aborted action therefore cancel control character \ (octal 033 127). CTL is what followed by a sequence. ESC operating Chapter in the the that no any C, abort action (control) | middle following C which be escape as T puts C. the terminal in the ANSI string processing mode. If this condition occurs and 1f the host does not send the cancel control character, the Letterprinter 100 will discard all printable characters (see ANSI string host exit not send the SELF TEST. SPECIAL The processing). SP recover control from this character, mode, you should the enter and must CHARACTERS following DEL To cancel characters are special characters: character (octal @40) character (octal 177) character represented by octal 240 character represented by octal 377 While in the text mode, the space character will increment the active column (subject to margins) but will not reset the single shift flags. While in the escape mode, SP will be processed as an intermediate character. The DEL not recommended While character in processed is stripped from the a fill character. text mode, the character as unspecified an as printable received data represented character by stream. octal (printed It is 240 is using the error character). It will reset the single shift flag in the same as the GR codes. While in escape mode, it will be equivalent way to The a space (octal character received data 049). represented stream. It is by octal not recommended 377 is stripped as a fill from the character. CHARACTER SETS Ninety four codes are one eighty eight codes reserved are not sufficient hundred environment. characters So, They that may characters called sets into can be GL are or be reserved required grouped GR. for To for in They a sets further preselected. GL of then Figure 2-3 and 2-4 show how any set from be designated as G@-G3 and how G@-G3 can or the 7-bit environment; for GL and in to 94, GR access particular improve are in 8-bit of and any set can processing speed, up known Gl, or an be the application. G@, G2 be to | to the character set section 2-12 in 4 G3. infinite repertory can invoked into either GL GR. Refer the all Chapter 3 for more detail. l co GL l U 4 |I 7 - SET IN USE @ S1 OR LSO ‘ @ SO OR LS1 | J GO J | G1 r G2 [ @ SS2 OR LS2 G3 r r @ SS3 OR LS3 GRAPHIC REPERTORY| |-~ MA-0280-82 Figure 2-3 Code Extension in a 7-Bit Environment | GL I ] C1 GR ~ L ; (J GO I @ S1 OR LSO — @ SO OR LST 6 i G1 r @ SS2 OR LS2 r G2 = \ 8 - BIT SET IN USE ;J l — 3)(4 f — | | i | | 7| I co @ LS1R @ SS3 OR LS3 G3 r - (::) LS2R | . IF ESCT .. IF @ LS3R f DESIGNATION OF GRAPHIC SETS GRAPHIC | REPERTORY 1 | MA-0279-82 Figure 2-4 Code Extension in an 8-Bit Environment CHAPTER ESCAPE AND CONTROL SEQUENCE 3 DEFINITIONS GENERAL This chapter descibes escape and control escape sequence description should be NOTE: The bit octal ASCII processing of read in control before escape and encoding. characters. detail sequences. is this control They are of described characters using The all the Information 1is in Letterprinter concerning Appendix provided in A. 100 generic A general Chapter 2 and by eight section. sequences illustrated illustration are defined using C@/Cl will vary with their mnemonics the and character set selected; use only the octal encoding as a reference. Although the sequences are defined with an eight bit encoding, the seven bit equivalent encoding will have the same effect. DETAILED SEQUENCE DEFINITIONS The following section describes in detail the escape and control sequences to which your terminal responds. These sequences are described 7/8 Bit in the following Environment order: Selection Introduction Cl Transmit Enable/Disable Cl Receilve Enable/Disable Line Feed New Line Mode Auto Wraparound Mode Active Column and Active Horizontal Forms Line Handling Print Area Horizontal Horizontal Margins Pitch Select Horizontal Horizontal Pitch Tabs Vertical Forms Vertical Form Mode (Characters per Handling Pitch (Lines Length Vertical Margins Vertical Tabs per Inch) Inch) Character Style Quality Select Mode Select Graphic Rendition Character Set Designation Character Set Invocation Reports Request Font Configuration Report Font Configuration Request Report 7/8 BIT This how Product Product ENVIRONMENT section to Identification Identification describes translate Environment SELECTION the how data to select for each your coding environment and environment. Selection There are three variables governing the data and the encoding of transmitted data: processing of received Data Bit Selection (communication switch selectable -to change the data bit feature, refer to the Letterprinter 100 operator Guide) Cl Cl The factors Transmitting l. Transmit Enable (escape sequence selectable mode) Receive Enable (escape sequence selectable mode) governing character processing are described below. Characters Whenever switch the set to 8 data 8-bit Transmit Enable transmitted using Whenever the switch set to Transmit bits 1is data), its use mode 1is selected), 8-bit coding. 8 data bits 1is 8-bit data), and Disable selected, and mode 1is allowed data selected, its use is selected), (communication is will (Cl be (communication restricted (Cl GR data transmitted using 8-bit coding, Cl control transmitted using 7 bit equivalent coding. data will be will be Whenever 7 data bits is selected set to 7-bit data), any code tanslated into NOTE: exception An answerback a 7-bit message code to to (communication switch transmitted will be equivalent. these be rules does translated. If NOT permit an answerback an message containing 8-bit data is to be sent without using the 8th bit, the MSB will be truncated and the coding will not be converted. B8 B7 oo 0 B5 0 0 0 9 BITS COLUMN B4 B3 B2 B1|ROW 0 0 00 O0f0O NUL 1 0 0 2 0 20 0 10 0 16 s 21 SP 0 1 T 3 40 32 20 0 48 30 1 5 100 64 40 P 0 T . 0 6 120 80 N 50 1 1 0 4 7 140 96 60 L 0 8 0, 9 200 220 70 80 90 \\ P 112 71 81 91 q 113 129 2 22 Py 42 2 62 B 102 R 122 b 142 r 162 202 222 2 18 34 50 66 82 08 114 130 el G |24 2 12 22 32 42 52 62 72 82 92 A2] B2 C2 D2 E2 F2 23 243 | 263 323 343 73 83 93 6 363 51 C 67 S 83 c 99 S 115 131 4 24 $ 44 4 64 D 104 T 124 d 144 1 164 204 224 4 20 36 52 68 84 100 116 | IND | 132 4 14 24 34 44 54 64 74 84 5 5 25 45 65 105 125 165 5 15 25 35 45 55 65 0110|686 6 6 26 22 & 46 66 106 v 126 f 146 01 1 1|7 7 BEL 7 27 ’ 47 17 9 147 7 W 127 BS 10 30 X 130 88 h 150 HT | 11 Y 131 . 151 1 0|14 111 1 |15 | D 145 3 11 3 3 13 21 6 16 23 8 CAN 8 24 18 31 25 9 | LF 12 B | 32 A 1A VT 13 11 % 37 38 26 39 ( 50 ) 51 40 28 41 ESC | 32 + S 54 7 67 52 8 H 9 71 1 111 53" . CR 15 13 35 1D 45 - D 29 55 SO 16 36 56 E 1E 2E 17 37 57 F 1F| 44 2D . / 46 | 2F 56 87 57 58 89 72 J 112 Z 132 K 113 [ 133 L 114 \ 134 58 < 2C ’ 73 86 59 74 1C 72 48 85 49 ? C KEY L | 57 47 U 53 39 73 FF | 12 31 56 38 3A 34 SI | ;5 37 2A 54 107 110 42 2B 70 46 70 - 43 F 69 G 71 14 30 36 E 43 55 1B 14 53 6 B 28 33 29 26 27 23 27 3% 10 SU | 0 19 ASCIl CONTROL SET ASCII CHARACTER FO 97 35 T 1.0 1|13 240 EO a 61 59 3B 60 74 4A 75 4B 76 90 5A 91 5B 92 i 61 Al + 177 B1 242 ¢ 262 e2) 2 |78 193 C1 N 302 A |194] 321 360 224 81 51 & 1 1.0 0112 f\ 301 a Q 41 (x&s 19 o1 1| DO 208 65 223 101 010 co 192 15 340 A 31 203 1T 00 1]09 320 1 49 163 8 14 300 l\\ 1 1 21 261 13 0 33 143 1 00 0] BO 1 1 ! 11 241 176 T 17 123 |ENQ AO | 12 260 © 0 B o 221 103 o010 1|5 160} | 201 63 00]|4 1 T, 11 \\ 240 128 | DCS | 144 1 0 0 10 160 43 01 1 161 3 001 1]3 L 1 141 (Xg\,} 61 @ 0 121 1 41 T 4 60 0 0 101 1 0]2 0 0 1 0 00 1|1 001 0 8 | 209 D1 a 322 § 341 225 n E1 342 |20 @ 33 ‘ 27 | 1B 241 F1 362 |26| 179 K 303 244 264 .o 304 148 164 180 A |19 o | 244 94 Ad B4 o D4 E4 F4 205 117 | NEL | 133 225 245 265 305 325 345 o 365 75 85 95 A5 B5 C5 D5 E5 F5 v 166 118 206 266 306 @@ | 230| 366 A6 214 346 96 6 | 326 86 150 246 | 76 134 226 w 167 119 207 § 347 87 151 247 77 135 227 X 170 210 | 1200 HTS | 136 230 78 88 98 XX 250 y 171 121 211 137 231 © 251 69 79 89 99 A9 B9 c9 D9 E9 F9 J 152 172 212 1221 VTS | 138 232 6 332 352 9A /E\ 312 8A O 272 7A a 252 k 153 107 173 213 233 9B G 333 8B 'E' 313 7B » 273 6B « 253 | 290 & | 28| 1 154 174 214 234 254 VY, 274 i 314 'U' 334 354 e I . 63 145 101 102 66 103 67 104 68 105 106 6A 108 u Z 147 149 97 152 153 154 123 PLD | 139 | CS1 | 155 I 124 PLU | 140 | ST | 156 £ ¥ 163 A3 |65 3 B3 1 66| 181 | 167 A8 169 170 AA 171 AB 172 D3 © 0O 199 | CE C7 D7 E 310 7)) 330 E 311 0 331 184 B8 271 185 186 BA 187 BB 188 200 c8 201 202 CA 203 CB 204 a 213 C 227 E3 344 |22 327 C6 a 324 307 B7 1 211 267 183 | 197 6 [ | 198 270 168 c3 182 B6 @ A7 A 195 a . D6 215 216 D8 217 218 DA 28| 229 231 e 350 232 e 351 e E7 E8 233 234 EA EB 220 1 245 F6 | 353 DB F3 ‘o | 246 E6 G 243 364 236 o2 367 o 370 u 371 T 372 U 373 247 F7 248 F8 249 250 FA 251 FB 374 U | 282 3C 4C 5C 6C 7C 8C aC AC BC cC DC EC FC = 75 61 M 115 77 ] 135 o3 M 155 109 } 175 215 235 141 | OSC | 157 255 275 315 335 355 375 8D 9D AD| > 76 N 116 A 136 n 156 = 176 216 236 256 276 3D 62 : ? 4D 78 5D 94 6D 110 1250 7D 126 R1 SS2 | 142 | PM | 158 173 Z) 189 BD 174 190 i ’I‘ 205 CD .Y. 221 DD 316 336 206 22| ] 74 237 ED 356 238 'y' 253 FD 376 254 3E 4E 5E 6E 7E 8E 9E AE BE CE DE EE FE 77 117 137 157 177 217 237 257 277 317 337 357 \\ 377 4F 5F 6F 7F 8F oF | AF 63 3F O 790 5| © ASCIl GRAPHIC CHARACTER SET 1| DEL | 1 SS3 | 43| ADD’L SET APC | 159 o CONTROL 175 ¢ | 191 BF 'I' 207 CF B |2 DF °° | 23 EFIN 255 FF DEC SUPPLIMENTAL GRAPHIC SET DEC MULTINATIONAL CHARACTER SET ESC i 361 Al > | OCTAL DECIMAL | HEX MA-10,087A Figure 3-1 Standard Character Chart Receiving 1. Characters Whenever set to 8-bit 2. 7 data 7-bit code Whenever switch bits data), with the set the 8 to 1is selected any code MSB set to bits is data), and data 8-bit (communication received Whenever switch the 8 selected, its use described for in to any code allowed (Cl received is data 8-bit ~ converting ANSI X3.41 between and ISO 7-bit to 8-bit Conversion Converting from 7 to 8 bit improves the data transmission 7-bit and 8-bit environments coding 1is not required. It only rate. converted (2) (3) setting the eighth bit, and clearing the seventh bit of 1into setting 8-bit to than to Graphic using GL, the GR 7-bit SHIFT the eigth ESC be removing Rather the can (1) Converting G3) 3-1)], set bit to the final functions be 9 can be from character. to bring a locked into GR, G set (G%9, then accessed GR G2, by Conversion converted the to character characters ESC is required from Fe (where Fe chart columns 4 ANSI to chart translate columns represents and 5) by a Graphic 8 final inserting an ESC character followed by a final character obtained by the 8th bit of the Cl code to "@" and the 7th bit to "1". Ccnverting Gl, "1". Converting Cl Control Codes Cl functions coded as single character Cl Codes When operating in a 7-bit environment, it 8-bit codes into their 7-bit equivalent. and one-byte the and control character, can to is 2@22. Converting to Cl Control Codes The Cl control functions, coded as two-character sequences of form ESC Fe [where Fe is from the character charts, columns 4 5 (see Figure characters by: an (communication is Environment Conversion method as bits is selected, (communication data), and its use is restricted (Cl Disable mode is selected), GR data is not Cl control data is truncated (MSB set to "@g"). set Receive changed, The switch considered "g". Receive Enable mode is selected), considered an 8-bit code. 3. is setting Codes Using the designation sequences, designate the desired set as G2. Then, for any GR code, first send a SS2 function, then the code with the eigth bit set to "@g". | | Equivalent Cl Control codes and Escape Sequences All 8-bit single character control codes perform as two-character supports the escape following 8-Bit Character sequences. Your the same Letterprinter 100 combinations: 7-Bit Sequence Function IND = ESC D Index NEL = ESC E Vertical HTS = ESC H Horizontal VTS = ESC Z Vertical line tabulation tabulation PLD = ESC K Partial line down PLU = ESC L Partial line up RI = ESC M Reverse index SS2 = ESC N Single shift 2 3 SS3 = ESC O Single shift DCS = ESC P Device control CSI = ESC | Control sequence ST = ESC \ String terminator OSC = ESC ] Operating PM = ESC ° Private message APC = ESC The following Name Cl Cl Mnemonic Transmit following Name Cl sequences Mnemonic Receive Feed New Line line feed control terminal receives a active line received a used to enable or ESC SP G @33 @49 107 ESC SP F @33 @40 106 used to are Mode command program disable Enables enable Cl command Transmit Cl Transmit Disables Cl Transmit disable Cl Receive or Function ESC SP 7 @33 040 067 ESC SP 6 033 040 066 -- introducer Function Sequence Receive Line are set set string system Application Sequence Transmit The Cl sequences action terminal defines Enables Cl Disables your terminal's character. When this mode line feed control character, Cl Receive Receive response is it to the off and your increments the and advances the paper one line. When this mode is on, line feed control character causes your terminal to return the active usual functions. column NOTE: This feature does modifying active line. to the left not affect margin any of in the addition other to its functions | Use the following line mode. Name Line new feed sequences to enable or Mnemonic Sequence LNM CSI 2 @ h 233 @62 068 150 CSI 2 @ 1 233 062 @60 154 line disable line new Function Set line feed line mode mode. new on. | Set line right margin. When this mode is feed line mode Auto Wraparound Mode -determines where the next printed when received while the active position is the feed off, any new off. character 1is greater than characters received while the active position is at the right margin are not printed. When this mode is on, any characters received while the active position is greater than the right margin are printed starting at the left margin on the next line. Use the enable or disable auto wraparound mode. Name Auto wrap following Mnemonic Sequence DECAWM CSI ? 7 h Set auto 233 @77 @67 150 mode on. auto around mode sequences to Function CSI ? 7 1 Set 233 @77 @67 154 mode wraparound wraparound off. Active where line begin the Column and Active Line -- The active column is the column next character will be printed. The active line is the where the next character is printed. Column and line numbers the with one, active increment not column. the active zero. Printable Line feeds, characters vertical usually tabs, and position Bell characters they are not of do made the not to feeds line. The active column and active line collectively are active position. The active position is only loosely physical increment form carriage have sound a an and paper active bell tone the the mechanism. position at known as linked to attribute any particular in that position. In addition to the control characters carriage return, following control Name Mnemonic Index IND (backspace, horizontal tab, line feed, vertical tab, and form feed) the functions modify active column and active line. Sequence Function IND Increment active line and advance paper. 204 NOTE : Line feed mode has this feature. new line no effect The * k& character is used to indicate variable numeric parameters within escape sequence. Vertical VPA position absolute the octal CS1I Pn 233 * % % representation d Set 144 if of the active control line to Pn than or Pn is equal to active If is greater Pn less bottom margin, line is set to on Next on line NEL next 205 active Horizontal HPA position absolute CSI Pn 233 % k %k Set 140 active Pn. greater margin, column to increment set column If than with enabled, next than active top margin left line. column is line. page. Set active margin and NEL or Pn right wrap active to left line. to is column margin With on wrap disabled, active column is set to right margin. If Pn is less than or equal to left margin, active column left margin. Horizontal position relative HPR CS1I Pn a Advance 233 * % % 141 column is current by Pn set to active columns. If active column exceeds right margin, with wrap enabled, active column is set to left margin on next line regardless of actual value of Pn. With wrap disabled, active column is set to right magin. If motion occurs. Pn = @, then no Cursor up CUU CSI Pn A 233 *** 101 Decrement line by current Pn active lines by Pn lines without going past top margin. If Pn is greater than or equal to current active line, sequence 1s ignored. Vertical VPR position CSI Pn e 233 **% 145 Advance Pn relative If lines are 256 I1f active lines. line by Pn = {4, assumed. parameter exceeds bottom margin, line is set to active top margin on next page regardless of actual value NOTE: The PLD sequence does not modify losing the top of form reference sequences to the terminal. Partial line PLD down of the active an equal send Index paper 213 (/12 inch). new NOTE: The PLU sequence does losing the top of reference, Partial line the PLU up Reverse index to form not modify send To up on .212 Line line mode this avoid of PLU cm feed has no sequence. the active line. an equal number To avoid of PLD terminal. PLU 214 RI line. number PLD effect sequences Pn. Index paper down .212 cm (1/12 inch). Line feed new line mode has no effect on this sequence. RI Decrement 215 move paper down one line. Line feed new line mode has no effect on this sequence. active line and Horizontal Forms Handling -among print area, horizontal select mode Print Area will ever and horizontal tabs. describes the interrelationships margins, horizontal pitch, pitch -- the user-defined limits for printing, no printing occur outside of these 1limits. These limits remain unchanged unless explicitly modified. the following explicit commands: The print area is modified by The 1. Set 2. Recall 3. Reset print 3-2). It print area text on If area from to area is user is an reference inches (see Figure The the the user with absolute limits to center platen. no use is made of the print identically terminals. to area, the horizontal the horizontal functions of first parameter (Pl) in the set print area sequence defines new absolute left reference in 1/12 of an inch (measured from left edge of the If Pl is greater The width of the specified platen). The width inches - left margin is The column remains reference. (P2) Left set horizontal If The the second new to 1. tabs The column right with The print is greater next printable character will (autowraparound/truncate) feature. following the print Name Page width Alignment sequence in of the the set print truncated to 157. is width (Pl) slide unchanged. active (P2) width or Reference the The parameter absolute than 157 (13.08 inches), it is print area is the smallest of: 13.2 pitch. Set in provides print area sequence defines area in 1/12 of an inch. of memory default absolute functions will operate DIGITAL's earlier model The the the permanent factory the base reference for all horizontal positioning. the NOTE : print is used to margin the left head slides than the activate set the set left to reference. with new the the right auto reference left margin, wraparound and width area. Mnemonic Sequence DECHPWA CSI Pl ; P2 " s 233 **%*% (73 *** (42 163 Function Set left / Active reference and width of print area the PRINT AREA (USER-DEFINED IN INCHES) PAPER RIGHT (USER INSTALLED) MARGIN TAB SETTING MARGINS AND TABS ARE COLUMN ORIENTED PLATEN (132 COLUMNS WIDE ) & MA-7251A Figure 3-2 Print Area and Horizontal 3-10 Settings Horizontal Margins return end-of-line and oriented -- the and are modified margins 1. Set 2. Recall 3. Reset from to user 1. Set horizontal Set horizontal 3. Select Select 5. Set (see the limits Figure following permanent for 3-2). the They explicit carriage are column commands: memory default implicit commands: 2. 4, by factory and by the following user-defined functions pitch pitch (cleared) select mode print quality graphic rendition print area If both parameters of the DECSLRM sequence are not zero, and the first is the smaller of the two, set the left margin to the first parameter and column less 1is the the new left right margin, wraparound - The of to the margin the new to the left the margin. If active the next printable is ignored second if the parameter. active column If active is set column is greater than character will activate The parameters sets the omit first parameter parameter sequence right to the new the auto feature. first parameter. second margin, (autowraparound/truncate) sequence equal right than margin is greater than or if one is also ignored past the assigned print area. If you parameter attempt the the 1in a sequence, sets the right margin to the column set the right margin to the left to sequence will be ignored. If you omit of the the remaining specified. the second left If you margin, parameter in a sequence, the first parameter sets the left margin to the column specified. If you attempt to set the left margin to the right of the right margin, the sequence will be ignored. If active column is less than the new left margin, active column is set to the new left margin. If active column is greater than the new right margin, the next printable character will activate the auto wraparound (autowraparound/truncate) feature. If you set unchanged. The both following Name Set left and right parameters sequence is to zero, used to or set omit the them, left Mnemonic Sequence DECSLRM CSI Pl ; Pl S 233 *** @73 *** 163 NOTE: The escape *** character within sequence. the is octal margins right are margins. Function margins parameters and the used to Set indicate representation left and right margins to the values given of variable the numeric control or Horizontal Pitch -- determines the width of printed characters as well as their spacing. Your terminal has eight horizontal pitch selections (see Figure 3-3). on a single print line. Any NOTE: pitch the The actual density horizontal select mode, combinations pitch used features Horizontal by and is modified the 1. 2. Set horizontal pitch Recall from user permanent 3. Reset by the to factory following Set pitch select mode Select print quality 3. Select graphic rendition pitch the horizontal new active may terminal and used depends horizontal attempting following be to on pitch select explicit commands: active column. memory commands: 1. 2. Changing when pitch default implicit modified the select mode, features. Refer to all three horizontal pitch. pitch by of column is modifies the first the column boundary at The or to the right of the physical position of the previous active column in the old pitch. The new active column is calculated as follows: New column = 1 + (01d O0ld where New column The division or fractional column Changing margin right is column pitch = = performed part of horizontal set margin 1) X New pitch pitch New pitch 0ld 01ld = the new the new pitch the the o0ld o0ld above the pitch is active inches per character active column pitch in inches per character an quotient also to column one is set the maximum to integer is clears and, column in division. Any remainder discarded. horizontal margins. depending column (see Table 3-1). Pitch settings have no The following sequences are used to set on for the the print The left area, the selected effect on the print horizontal pitch. pitch area. et BOCNHeasRaeIDTERLDS S PER S CHARADCDCTERS St CHAaRACTERES 8.25 CHARACTERS 19 CHARACTERS PER 12 CHARACTERS PER PEERE FER FER LY L i O IMNDCH TINCH INCH ITNCH INCH 13.2 CHARACTERS PER INCH 14.5 CHARACTERS PER INCH Figure 3-3 MA-8323 Horizontal Pitch Examples Table 3-1 Maximum Right Margins Horizontal Maximum Pitch Right 10 132 12 158 13.2 168 16.5 217 5 66 6 79 6.6 84 8.25 108 Margin (with print area set to 13.2 in.) Name Mnemonic Sequence Set horizontal DECSHORP CSI 233 Y] @6@ CSI 1 233 @61 pitch Function W 167 Set horizontal to default (10 pitch cpi) w Set pitch 167 to | CS1I 233 2 w @62 167 horizontal 10 char/in Set horizontal pitch to 12 CSI 3 w Set 233 @63 167 to char/in horizontal 13.2 CSI 4 w Set 233 @064 167 to horizontal 16.5 CSI 5 w Set 233 @65 167 to 6 w Set 233 @66 167 to 7 w Set 233 @67 167 to 8 w Set 233 @70 167 to pitch char/in horizontal 6.6 CSI pitch char/in horizontal 6 CSI pitch char/in horizontal 5 CSI pitch char/in pitch char/in horizontal 8.25 pitch char/in Horizontal Pitch Select Mode -selects font pitches or all pitches. When your terminal is set to all pitches the terminal can print any of the eight horizontal pitch selections available. This feature is useful when your terminal is used as a lineprinter. When font pitches is selected, your terminal will print at the single width pitch of the current font (1@ or 12 characters per inch) or its double width (5 or 6 characters per inch) only. This feature 1s useful when printing draft copies of future letter quality documents because the draft quality copy will look 1like the letter Horizontal quality pitch copy. select mode is modified by commands : 1. Set 2. Recall horizontal 3. Reset from to pitch user factory select permanent default mode memory the following explicit There are no implicit commands that modify horizontal pitch select mode. Use the following sequences to select font pitches or all pitches. - Name Mnemonic Sequence Function Pitch cCSI ? 2 9 h Set pitch select select mode 233 @77 @62 @71 150 mode to font pitches. Pitch CSI ? 2 9 1 select 233 077 @62 @71 154 are column Horizontal Tabs -- oriented Set pitch select mode to all pitches. predefined positions on paper (see Figure 3-2). The Letterprinter 100 has 217 possible horizontal tab stops, one for each column. Tab stops are assoclated with column numbers relative to the print area, not physical positions on the paper. Therefore, if you change the horizontal pitch you also change the physical position of the tab stops. Tabs are modified by the following explicit commands: and 1. Set 2. Clear 3. Recall 4, Reset by the horizontal tab horizontal from to user factory following tab permanent memory default implicit commands: 1. Set horizontal 2. Set horizontal 3. 4, pitch select mode Set print density Select graphic rendition 5. Set print You may set or pitch area clear each tab stop independently or in groups. You may set stops or clear them regardless of margins or horizontal pitch. However, setting a stop already set has no effect; the same is true for clearing a stop already cleared. The default settings for horizontal tabs are one in every eight columns. The following sequences are used to set or clear horizontal tab stops. Name Mnemonic Sequence Horizontal HTS HTS Set 210 stop tabulation Function set Horizontal DECHTS ESC 1 Set @33 @61 stop set TBC clear Tabulation TBC clear Tabulation TBC clear all DECCAHT horizontal tabs The *** parameters escape tab active horizontal at tab active column Tabulation NOTE: at column tabulation Clear horizontal CSI @ g 233 060 147 tab g Clear 147 tab CSI 2 233 062 CSI 3 g 233 @63 147 ESC 2 @33 062 character within Clear the is used to indicate all horizontal all horizontal all horizontal stops variable octal representation CSI Pn ; eoe PN u 233 *** @73 ... *** 165 column stops Clear tab active stops Clear tab horizontal at of the numeric control or sequence. Set DECSHTS horizontal tabs Vertical vertical Set horizontal tab stops at given values the Forms Handling -- describes the interrelationships among pitch, form length, vertical margins and vertical tabs. *Vertical Pitch -- Vertical pitch determines the spacing between lines, not the height of the printed characters (see Figure 3-4). The Letterprinter 100 has six vertical pitch selections. If you change ® the vertical the pitch you active line. change: Changing the vertical pitch causes the active line to move down on the next vertical motion command so that the distance between the top margin and the active line is an integer multiple of the pitch you selected. If @ the action of the form © the action of set top and bottom margin commands. & the position of the last printed line on the form. The last printed line will always be above the bottom margin. @ the position ® the top ® the form & the the top margin. The same position. first the bottom The Note that DIGITAL's vertical vertical change below * the you @ the of length of you tabs. do not affect: reference. length. the the form pitch command. margin. line last will line always will be never printed be at printed bottom margin. vertical previous pitch terminals. feature is different from that of 2 LPI BLR7 O A, AR A+ , —- o 3 LPI LESZ R 4 LPI () A N o PYH$78 s 6 LPI ()k LR Okt BRETO2A () A+ FEL& () A+, #$Z&’()k+,) $AZ(YA+, - CEGUR 8 LPI 12 LPI ytgszsy()* 1"'9‘»7&'}(':& .B/f‘ ().)f g %% ()7\","(YA, - (oAb Akt REGE T IR /()*4,9__/() 2' 1i;jz‘ &Ykt~ / (YA+,~./01 Jf!.,?'é PUESZE ()4 u..':(s%x/()}(*_ BSIRT QA+, GAE #g;sél&(;ifi' A&7 () A+, —. %%égiig.%: ififi“ féé +1J‘.. éé ‘.3 + el b 1 MA-8338 Figure 3-4 Vertical Pitch Examples The vertical pitch default following sequences are used selection Name Mnemonic Sequence Set vertical DECVERP CSI 233 pitch *Form modes: is six lines Y] 060 inch. The Function A 172 Set vertical pitch to six lines per inch CS1I 1 Z 233 @61 172 six Set vertical pitch to CSI 233 2 062 Z 172 Set vertical pitch to eight lines per inch CSI 233 3 Z @63 172 lines per Set vertical twelve lines inch pitch to per inch CS1I 4 Z Set vertical pitch 233 064 172 two lines Set vertical per to inch CSI 5 Z 233 @65 172 three CS1 233 6 @66 Z 172 Set vertical pitch to four lines per inch lines pitch per to inch Length -- The Letterprinter 100 can operate in one of two form mode or no form mode (roll paper). In the no form mode, there are no vertical margins or form occurs continuously, the line spacing being current pitch. When per to set vertical pitch. in form mode, the terminal will not 1length; printing dictated by the print above the margin or below the bottom margin, and the lines will be spaced that the distance between the active line and the top margin always a multiple of the current pitch. (see Figure 3-5). top so is When a form length of 2zero is defined for the terminal, the Letterprinter 100 assumes that roll paper is being used and enters the no form mode. When a non-zero form 1length is defined, the terminal assumes that form paper is being used, and enters the form mode. *Note that DIGITAL's the form previous length terminals. feature is different from that of 1/3 in. TOP MARGIN o o 1/2 in. W IR emn cR ouD CID e cwn e [} © 1234567890abcdefghij. 1234567890abcdefghij o o 1234567890abcdefghij 0O0OO 00 o o 1234567890abcdefghij 1234567890abcdefghij -] ° 1234567890abcdefghij o e o o o o 1234567890abcdefghij g o -] ° 1234567890abcdefghij © ° UNUSED ] o o o o o -] 0 o o 1234567890abcdefghij © o o 4 o e o o [+ [-] A 1/3in, | I o 1234567890abcdefghij 000 BOTTOM e o o MARGIN e o o 1/2 in. 1234567890abcdefghij 3 Ipi TO 2 Ipi D 0000000 O0CO0O0O00O0 -} P 000 TOP OF FORM o o FORM m o NOTE: ALWAYS START PRINTING AT TOP MARGIN OR AT SOME DISTANCE FROM TOP MARGIN THAT IS A MULTIPLE OF THE CURRENT VERTICAL PITCH. NEVER PRINT BELOW BOTTOM MARGIN. NO FORM 1234567890abcdefghij 1234567890abcdefghij 1234567890abcdefghij 1234567890abcdefghij 1234567890abcdefghij 1/3 in. 1234567890abcdefghij 1234567890abcdefghij 1234567890abcdefghij 1234567890abcdefghij 1234567890abcdefghij 1/2 in. 1234567890abcdefghij 1/2 in. 1234567890abcdefghij 1234567890abcdefgh | 3 Ipi TO 2 Ipi Eron. 1234567890abcdefghij Lot i B 3 Ipi | J 2 Ipi 1234567890abcdefghij 1234567890abcdefghij 1/2 in, 1234567890abcdefghij NOTE: ALWAYS PRINT LINES EVENLY ACCORDING TO VERTICAL PITCH, Figure 3-5 Form/No Form Mode MA-8388 The form length is measured in horizontal wide. The form length can be no longer than length, first make sure that the terminal lines 1/24 of an inch 21 inches. To set form is at the top of the form. NOTE: Remember that the form feed puts the active margin, not the top of the form. To advance to the the top margin must be cleared. Measure the the current form length in vertical pitch inches. of the form length is a multiple of unknown or the form 1length pitch, set a new vertical line at the top top of the form Make sure that you know what terminal is and that the new that pitch. If the is not a multiple current of the pitch. NOTE: Most form lengths are a multiple of 1/12, and form lengths are either a multiple of 1/12 or 1/8. In to pitch is vertical all allowed any case, send the form length command with the parameter the form length multiplied by the current vertical pitch. The default sequence form sets 1length form selection 11 inches. The following length. Name Mnemonic Sequence Set lines DECSLPP CSI per physical page is 233 Pn *** Function t Set form length to n 164 X pitch in inches. Set top margin to 0 inches, active line to line one. Set top of form to current position, and bottom margin length. NOTE: The parameters escape equal *** character is within the octal set to form used to indicate variable numeric representation of the control or sequence, | Vertical Margins -- The top vertical margin specifies the first printable line; the bottom vertical margin specifies the limit for the last printable line (see Figures 3-5 and 3-6). Printing is allowed only on the lines between the top and bottom margins (including the top margin). The bottom margin may not be included depending on the When you distance set the between vertical top the pitch. and bottom margins, first be sure that the top of form and the desired margin 1is a multiple of the vertical pitch you have selected. Otherwise, change the pitch and then send the set margin command with a parameter equal to the desired margin in inches multiplied by the current vertical pitch in lines per inch. VERTICAL TABS BOTTOM MARGIN (LAST PRINTABLE LINE) FORM PERFORATION FORM LENGTH MA-72563 Figure 3-6 Vertical Margins and Tabs If you attempt to print above the top margin or below the bottom margin, the active 1line will advance automatically to the top margin of the next page. For example, a line feed (LF) received at the bottom margin causes the terminal to perform a form feed. The set vertical margins sequence, accompanied by two parameters, sets the top and bottom margins. If both parameters are not zero and the first is the smaller of the two, the top margin is set to the first parameter and the bottom is set to the second. Then the paper may be repositioned to the new top margin current line position and terminal activity. The sequence equal to is the ignored second if the of the specified parameters assigned form length. If you omit the first parameter. first The would parameter parameter sequence set in the the is depending on greater than or if one past the is also bottom ignored margin sequence, the parameter sets the bottom margin to the specified attempt to set the bottom margin above the top sequence is ignored. If you omit the second parameter sets the top attempt to sequence is you omit both following line is set to parameters or set them Name Set top, sequences set the Mnemonic Sequence DECSTBM CSI 233 bottom Pn *%%x top the new to and NOTE: The escape *** character within sequence. the is octal top zero, margin, than the margin the and margins is top of inches. form. the new the are The bottom margins. Function ; (73 Pn k*k* 4 ]162 margins parameters you the in the sequence, the first the specified 1line. If you unchanged. The default top margin selection default selection for the bottom margin is 11 The remaining line. If margin, set the top margin below the bottom ignored. If you make the active line less top margin, the active paper is repositioned. If parameter margin to the used to Set top margin to line Pn and bottom margin to line Pn. indicate representation variable of the numeric control or Vertical Tabs -- A vertical tab is a preselected line to which the printhead advances when a vertical tab control character is received (see Figure 3-6). The terminal has 168 vertical tab positions. You may set and clear vertical tabs the way you do horizontal tabs. Vertical tab stops are associated with specific line numbers, not physical positions on the paper. Therefore, vertical pitch changes the printing position of vertical changing tabs in on the every paper. line. The The default following settings for vertical sequences set or clear inches at 12 lines per inch = can have vertical tab stops. 252 lines. tabs are vertical one tab stops. NOTE: 21 168 lines Only Name Mnemonic Sequence Function Vertical tab set VTS VTS 212 stop Vertical DECVTS tab set NOTE: The parameters escape *** ESC 3 @33 @63 character within Set the is used octal to indicate representation vertical tab at active line. variable of the numeric control or sequence. Mnemonic Sequence Set DECVTS CSI PN ; 233 ***x (73 vertical Function stops Tabulation Tabulation clear ees Pn v Set vertical *** 166 tab stops lines TBC clear TBC all vertical tabs DECCAVT at given. CS1I 1 g 233 @61 147 vertical tab stop at active line. CSI 233 4 064 g 147 Clear all vertical tab Clear stops. Clear first Same. Name tab the ESC @333 4 @64 Same. Character Style -- describes the interrelationships among quality select mode, select graphic rendition, character set designation previous DIGITAL terminals, the repertory Letterprinter 100 is not 1limited. Every and invocation. Unlike of characters for the Letterpinter 100 can be configured in infinite number of ways to There are 3 main variables match the customer's application. governing what character is available for use at any given time: ° Which character ROM options are installed 1in the terminal. ¢ What mode of ° What selection operation printer/ Letterprinter). horizontal Character the parameters pitch, are printer is specified set to (character (line set, typestyle) Set Selection Rules Line printer mode (draft mode selected, all pitch mode enabled) -When the Letterprinter 100 is used as a lineprinter, a character is available for use provided the selected character set exists in the selected typestyle in any of the possible (5) character ROMs at printing time. NOTE: This differs from version 1 of the Letterprinter 100 microcode. Version 1 microcode only searches a maximum of two character ROMs. This allows you to have only one copy of the special character set like APL, Symbols, VT1@@ Line Drawing which do not have a typestyle, and still be able to access them without changing the For every typestyle ROMs for print the character typestyle selected DPS. character received, the Letterprinter 100 will take the of the currently selected DPS and search the character the proper character set. The Letterprinter 100 will character in the selected character set if the selected set exists in one of the character ROMs, and the is compatible, i.e.: identical, the selected DPS has no typestyle, or the character set has no typestyle If no such character set exists, currently selected DPS 1is the default character set for the used. Letterprinter mode (draft mode and font pitch mode selected, or letter mode selected) -- When the Letterprinter 1008 is used as a letterprinter, a character is available for use provided the selected character set exists in the selected typestyle and pitch in any of the possible (5) character ROMs at printing time. For every character received, the Letterprinter 100 will take the typestyle ROMs for print the of the currently selected DPS and search the character the proper character set. The Letterprinter 100 will character in the selected character set if the selected character set pitch, the and exists in typestyle one of the character is compatible, i.e.: ROMs at the proper identical, the ® If no or such currently selected the DPS has character character selected set DPS no typestyle, set has exists, is no the typestyle default character set for the used. Quality Select Mode -determines if received characters are printed in letter mode (medium or high density, depending on character ROM) or draft mode (see Figure 3-7 for examples) . The standard draft mode (7 character). draft mode Dot pattern X character) 9 Some (7 X 9 Sets or (DPSs) are letter mode/high print in (33 18 X the optional DPSs are designed to print in character) or letter mode/medium density (33 X 9 character). Selecting letter mode depending on DPS Both to density of characters, NOTE: designed medium and the high selects either selected. density DPSs can 33 be X 18 or resident 33 X 9 in your when the terminal. Your terminal will only respond to these sequences AUTO/MAN key is in the automatic (up) position. When the AUTO/MAN key 1is in the down position and the LTR/DRAFT key 1is used to select the terminal when the Use the Name print quality, any quality select sequence sent to your will be processed and stored. The sequences are performed AUTO/MAN key is set to the automatic (up) position. following sequences Mnemonic to change the Sequence quality select feature. Function Quality CS1I ] " Z Set Select 233 060 @42 172 to Quality CS1I 1 " Z Set Select 233 @61 @42 172 to Quality CS1I 2 " Z Set Select 233 062 @42 172 to quality default select (draft quality draft select mode mode. quality letter density mode mode). or depending select mode high on mode (medium density, DPS). PUp & (IA+, -, A0L334%46789: ;=>7RARCIEFGHIIKLMNOPARSTUVWXYZINITM Sabed "HGLET (DAY, FHEAE O FRE Ikt~ . /0134567890 5= TRABCOEFGH IIKLMNGPARSTUVUXYZLNITM “abede AY - /01334067890 ) =rTRABCHEFGHIJKLHNOPARSTUVWXYZUNDI " Yabedef /Q0LA345478% 1 I TEARCDEFGH IIJKLMNOPRERSTUVUXYZLN]" Yabedefq DRAFT MODE PR#GRE "H#GRE () %+,~-. /0123456789 ;{=>?EABCDEFGHIJKLMNCFQRETUVHEXYZL\1*_ ‘abcd ()*+, -, /015234536782 ;<{=:PBABCDEFCHIJKLMNOFQRSTUVRIYZL\1"_‘abcde #GR&' ()*+,-, /0122456789 ; <{=)PBABCDEFCHITKLMNOFCRSTUVRAEYZL\1"_‘abcdef SRE&' ()*+,-, /0123456789 ;= PEABCLEFCGHIJKLMNQFORESTUVREYEL V1" _*abedefg LETTER MODE (MEDIUM DENSITY) T"#S%&' () *+,-./0123456789:; {=>?@ABCDEFGHIJKLMNOPORSTUVWXYZLC\1”_ ‘abc "#8%&' () *+,-./0123456789: ;<= > ?@ABCDEFGHIJKLMNOPQRSTUVWXYZL\1~_‘abcd #Ho%&' ()*+,-./0123456789:;<(=> ?@ABCDEFGHIJKLMNOPQRSTUVWXYZLC\1*__‘abcde SX&' ()*+,-./0123456789:;<(=>"? @ABCDEFGHIJKLMNOPQRSTUVWXYZL\1”~__‘abcdef LETTER MODE (HIGH DENSITY]) Figure 3-7 Character Density 3-28 MA-8300 Examples R e o - o = B e e eB Select Graphic Rendition -- Select Graphic Rendition is used to define the attributes with which characters are printed. Your Letterprinter terminal recognizes only two attributes: style or font, and auto underline. | Font Selection: different shape of the provides Your fonts or Letterprinter styles. character users with not the 100 Changing the a character can print font itself. following fonts: be available characters simply changes DIGITAL in the currently Courier Gothic Orator Additional fonts Letterprinter a will 100 made terminal given time. If terminal will only the can make multiple respond to up font these to in the five fonts option sequences is future. Your accessible at your installed, when the option is set to computer select. If you force a font option, any font select sequences sent to from the multiple font your terminal will be processed be to option Operator detail. NOTE: stored. set Guide If to These computer and sequences will select. Refer multiple font the selected DPS is (DPS 1) until the selected Underline: When default Auto and 1is received disabled, Auto not option installed, DPS Underline Sequence Mnemonic Octal Select Graphic SGR CSI Select SGR CSI 233 Rendition Graphic Rendition Graphic SGR Rendition Select Graphic SGR Rendition Select Graphic SGR Rendition Select Graphic SGR Rendition Select Graphic Rendition is are underlined when printed. characters are printed without Name Select is SGR 233 when Letterprinter information for your uses terminal the 100 more the installed. enabled, all characters When Auto Underline underlining. 1is & Code Y] executed Function m disable underline 4 m enable @64 155 @6@ 155 CSI 1 @ m Use 233 @61 @6@ 155 DPS underline style of 1lst of 2nd CSI 1 1 m Use style 233 @61 @61 155 DPS (if installed) CSI 1 2 m Use style 233 @61 @62 155 DPS (if of 3rd installed) CSI 1 3 m Use style 233 @61 @63 155 DPS (if of 4th installed) CSI 1 4 m Use style 233 @61 @64 155 DPS (if of 5th installed) ee e e Designating Character Sets -- is selecting one of the character sets from an infinite repertory to be one of four preselected character sets G@-G3. As the Letterprinter 100 does not know which character sets will be installed at the time of printing, it will accept any valid designation sequence and memorize it. Only at the time of printing will the terminal ensure that the set is avalilable. If the set is not available, the terminal uses the default You character use the sequences as G@#, between of designate G2, G3 primary sequences These the sequences ESC I1 Figure . to Character available 3-8). As character the sets, the form (SCS) any escape four repertory is there eight are sets divided sets In of: F Intermediate Final Character Introducer (1 (1) more) defines the target character set as G@-G3, and whether the to be taken from the primary or the alternate section of repertory Select Select as from for Primary Gl G2 G3 @50 @51 P52 953 G0@ Gl G2 G3 v - . / Alternate @54 I1 is in set the follows:. G0O from for If Set repertory Characters or DPS. choose. take . selected Sequence Il is | . the alternate which currently Select from (See and from escape Escape for appropriate to Gl, set @55 the range 050 the range set. If Il is in alternative set. @55 to @53, 054 the to @57 designated @57, the set is designated a primary set is @ If I1 is @50 or @54, the designated set goes into G0 ® If I1 is @51 or @55, the designated set goes into Gl ® If I1 is @52 or 056, the designated set goes into G2 @ If I1 is @53 or @57, the designated set goes into G3. designates the the G2 an Thus, ESC ("A" set) * A 1in this instance primary is the | set "A" United as Kingdom set. character and, ESC / A designates the alternate set "A" as the G3 set. ("A," in this instance, 1is a special set yet to be , defined.) The number of intermediates that can be used 1is 1limitless. However, your Letterprinter 100 Terminal will only support character sets (whether primary or alternative) having designation sequences less than five characters long (including the ESC and final characters). It will ignore all other sequences. NOTE: This is an extension of the microcode. version 1 microcode only set designation sequences and did alternate section of the repertory. Letterprinter 100 allowed for three not allow version 1 character selection from the Table 3-2 lists the standard character sets and their valid final characters. The available character sets for the most part are language sets with some exceptions such as the VT100 line drawing set. There are standard DPSs for the following character sets: - I1SO - USASCII United kingdom - DIGITAL Finnish DIGITAL Norwegian/Danish DIGITAL Swedish - ISO —— DIGITAL French Canadian - Italian Spanish DIGITAL VT100 - —— ISO ISO ISO German French DIGITAL line drawing set Supplemental Set (Multinational) Table 3-2 Character ISO Character Set Final Characters Set United Final Kingdom Character A 1901 B USASCII 192 DIGITAL Finnish 5 | DIGITAL Norwegian/Danish @g65 6 #66 DIGITAL ISO Swedish 7 g67 German K 113 DIGITAL French Canadian 9 g71 ISO French DIGITAL VT1l00 R 122 line drawing set Y] g6@ ISO Italian | Y 131 IS0 Spanish Z 132 DIGITAL Multinational < 74 For additional documentation. characters for character The the sets, refer to the Letterprinter 100 accepts Finnish, Norwegian/Danish, character the and ROM option IS0 (LAl12@) final Swedish character sets. However the sequence selects the DIGITAL character handling method may be different in future terminals. set. This error Invoking Character Sets preselected character one ways: of three ° 1is to (G@-G3). you of are locked into Called single one sets into GL using LS (locking shift) until the next LS command) GR using LSR active until the in for a (locking single (single shift) functions character only) Once activate Character locked active (remain ° -- sets have control designated a function map to next character (or four right) in (remain functions command) printable (remain functions shift LSR the invoked character active set invoke) for one using SS printable as G@-G3, you use the G into GL/GR sets a where they become active character sets. There are nine control functions used to invoke designated character sets (Table 3-3). Error Handling -- describes how the Letterprinter way errors are handled may vary in conditions. The The shift single character will code. execute the If function the should terminal control code be followed receives and still a C@ apply or the 100 reacts to error future terminals. by a Cl control single GL shift printable code, it function to the next printable character. If the terminal receives a GR printable character code, it will truncate the 8th bit, and apply the single shift function to the truncated value. If the terminal receives the space character, it will process the space and apply the single shift function to the next printable character. If the terminal recelves the character code represented by octal 240, it will display the error character, and ignore the single shift function. Locking shift right functions have no meaning in 7-bit mode. Letterprinter 100 will accept and memorize them anyway. They will action when 8-bit mode is enabled. The take Table 3-3 Shift Functions Escape Name Locking Shift @& Sequence Mnemonic and Octal Code Function LSO Same as SHIFT IN Invokes GO into GL as SHIFT OUT Invokes Gl into GL Invokes G2 into GL Invokes G3 into GL Invokes Gl into GR Invokes G2 into GR Invokes G3 into GR @17 Locking Shift 1 LS1 Same Locking Shift 2 LS2 ESC n @33 156 Locking Shift Locking 3 Shift 1 LS3 LSI1R Right Locking Shift 2 LS2R Right Locking Shift 3 LS3R Right Single Single NOTE: into Shift Shift There GR. 2 3 is SS2 SS3 no LOCKING ESC o @33 157 ESC ~ @33 176 ESC } @33 175 ESC | @33 174 SS2 Invokes 216 printable SS3 217 Invokes G3 for a single printable character SHIFT @ RIGHT; there is no G2 way for a single character to invoke G#@ Reports -- describes the method of requesting and reporting configuration and terminal identification information. font Request font Font Configuration configuration to your report to Letterprinter Name | Request -- the 100 causes to request Sequence Font Configuration the computer. terminal Send the | the font to send following the sequence configuration. Function CSI ? 1 Y C 233 @77 @61 @60 143 Causes to | send Letterprinter font 100 configuration report. Refer to font configuration more report for detail. Report Font Configuration -- your terminal responds to the font configuration request with the following sequence. One sequence is sent for each installed DPS. Report Font CSI PO 233 *** NOTE: Configuration (@73 Sequence P1l s P2 ; P3 : P4 SP D **x*x @73 Kkkk (73 k*kk (73 kkk g4Q 1 @ reports P@ Letterprinter 100 version 1 microcode only Pl. PJ represents the select each DPS the location DPS LOCATION 1 10 2 11 3 12 4 13 5 14 NOTE: DPS therefore, 1--64 location rendition as This code the 10 is always end of the the ROM identification categories as shown below: (Indicates draft (Indicates draft and and letter memo be used for available for draft and letter draft and memo a specific and There standard (Indicates concernig code. standard (Indicates detail to is present 192--200 more is code report. 129--192 information. code One CODE indicates 65--128 code. sequence. and follows. selection it Pl represents possible ROM ID For DPS graphic 4 custom custom number, sent last; are four DPS) DPS) DPS) DPS) refer to ROM option | A standard DPS with an odd ID number contains United Kingdom character sets. A standard DPS number, contains the following character sets: ISO United USASCII and 1ISO with even 1ID attribute can an Kingdom USASCII DIGITAL DIGITAL DIGITAL ISO Finnish Norwegian/Danish Swedish German DIGITAL French ISO French ISO Italian Canadian ISO Spanish DIGITAL Multinational P2 represents the be one following of @ the No typestyle attribute. The typestyle numbers: typestyle 1 Gothic 5 Courier 9 Orator More numbers will be added for the Letterprinter 100. for more detail. P3 represents the pitch following numbers: 8 = Y P4 as new typestyles are made available Refer to the ROM option documentation 10 CPI/5 CPI 12 CP1/6 CPI represents attribute 1is the one g LETTER 1 MEMO print of the (33 (33 attribute. X quality following X 18 9 matrix) matrix) The pitch attribute. numbers: attribute The is print one of quality Request Product Identification -The Letterprinter 100 automatically transmits an answer to the ANSI standard request for device attributes. The following sequences cause the terminal to transmit its product identification sequence. Name Device - Mnemonic Sequence DA CSI C 233 143 attributes Device DA attributes *Identify DECID terminal Report Product ~automatically to the Name Requests the CSI @ C 233 Q66 143 ESC Z @33 132 product one ID CSI ? 233 @77 of identification Same. of -- the The Letterprinter following identification sequences in 100 response sequence. Sequence Terminal transmission product Same. 1Identification transmits request Function Function 1 @ C @61 060 143 Base LAl10@O (level microcode - 1 7-bit only) Terminal ID CSI ? 233 @77 1 Y/ ; 2 C 061 @60 @73 @62 143 NOTE: Depending on the enviroment, using either 8 data bit can handle 7 8 or bit these reports. *This sequence products. therefore It not is may data or disble provided not be recommended. these encoding. for 8 Make bit Enhanced (level sure transmit in LA100 microcode - 8-bit) reports will that future your before compatibility supported 2 with be sent system requesting previous products and 1is CHAPTER ANSI STRING 4 PROCESSING GENERAL This chapter describes the ANSI control strings. This and graphics ANSI CONTROL When the listed 4-1, starts processing Letterprinter 100 has Graphics mode and chapter. When 1in as and -- 176 usual and receives any of the escape sequences leaves the standard text processing mode, characters according three of sets answerback default to 241 control any -- 376). when one characters Your the String terminator (ST One of the CANCEL (octal following (octal Any Cl control Any character or \) characters is @33) code (octal received 200 with entry or Answerback the protocol terminal detail Message on (octal @00 received revert 1is in this terminal -- @37 (octal @41 the text to occur. received (normal received: ©032) selector more the conditions ESC 100 mode) later mode, will following Letterprinter For defined received terminal a valid are characters recognizes \. The @30) (octal ESCAPE The to different rules. to process strings; processing printable of SUBSTITUTE NOTE: rules entry mode string termination) ® encoding processing discards processing mode ¢ processing entry mode string Graphics 177) of message mode Answerback responds method 100 it and and 100 answerback STRINGS Table Default includes procssing. Letterprinter in Letterprinter DCS entry sections 237) transmission remains receives mode, a -- in DCS (graphics the mode mode terminator refer to in manual. this error the or until it answerback sequence ESC Graphics Mode and Table | | 4-1 ANSI Name String Introducers/Terminator 8-bit 7-bit Character Sequence ; String | ST terminator ESC \ 234 @33 134 Application APC ESC _ Program 237 33 137 Operating OSC ESC ] System 235 @33 135 Command Command Privacy PM ESC B Message 236 @33 136 Device DCS 220 ESC @33 P 120 Control String 4-2 MODE GRAPHICS While 1n the text mode, characters are printed as they are received. In the graphics mode, characters received define specific columns of dots to be printed. The graphics mode permits users to print dot combinations anywhere on a page. This mode can be used After draw pictures entering pitch, in to and DIGITAL Your 72 graphics horizontal "Graphics paper the Mode does when not per and recommend Letterprinter plot graphs mode, the margins Pitch" operating columns and in 100 inch the (Figure 4-1). vertical pitch, horizontal change. These changes are "Graphics Mode Margins" sections. sheet tractor feed from using single graphics mode. or described now has variable horizontal resolution to 330 columns per and inch a vertical resolution of 72 dots per inch (see Figure 4-2). This feature greater resolution, or allows you to vary print density, but it mainly allows the Letterprinter 100 to be compatible with various host software. allows Dots are the basic Letterprinter Dot 100, printable dots are unit while circles Spacing is the distance between The vertical dot spacing is dots. spacing is in 13.5 the graphics mil in centers 13.5 mil. mode. For the diameter. of two The horizontal variable. As the horizontal dot spacing can be smaller diameter, two consecutive dots may overlap. There consecutive dot than the dot is no overlap between two consecutive dots in the vertical direction, but there will be a 6 mil (forty percent of dot diameter) overlap between two consecutive lines. Dot aspect ratio is the ratio between vertical dot spacing. It defines how each Due direction to the a 100 of dots graphic line. Table get variable Letterprinter number to a perfect square. horizontal dot prints dots line varies. per horizontal dot spacing and many dots must be sent in in spacing, horizontal So do the and the groups exact fact of that the thirty, the maximum length of 4-2 lists the horizontal dots per possible values inch, horizontal for horizontal dot spacing, overlap, aspect ratio, dots inches per line, select per line, and how to them. —— e»'/m:\“\-_g ‘h»:-.“'\_l- “l‘" +y“ut‘ /”‘l“\'v‘t’# "" S 3 Y s e ol va by, ] .ro -BVe . ars LY & ¥ & N b ‘—-~-:'-Mi’meu':.e.»‘”'.‘ EXPENDITURES PR IC AMD PRITATE SOHAES ENROLLMENT BILLIONS OF DOLLARS MILLIONS 100 100 (Il Enrollment, total 25 |- [ Public Enrollment :]— Right Scale @8 Private Enrollment - 75 —— Total Expenditures ---- Public Expenditures ]—— Left Scale ~~~~~~~~ Private Expenditures -7 el - 50 -1 59 25 - 25 ] 1960 1962 1964 1966 1968 1970 | 1972 { 1974 '} MA-8389 Figure 4-1 Graphics Capabilities PRINT HEAD WIRE TOP BOTTOM o 1 o o o O (o] 2 3 4 5 6 BIT 4 BIT 5 BIT6 o o o) 7 8 9 NOT USED NOT USED NOT USED BIT 1 BIT 2 BIT3 MA-8404 Figure 4-2 Graphics Printhead Use Table 4-2 Dot Spacing (in mils) Dot Spacing as a Function of Pitch Dots/ Inch | Overlap Aspect Ratio Dots/ Line Inches/ Line Pl Selection Parameter 4350 13.18 2 3.0 330 77% 4.58 6.0 7.5 9.0 165 132 110 55% 50% 32% 2.29 1.83 1.50 74 0% 4,5 13.5 12.0 13.5 *Default 220 94 83 values 66% 20% 9% 3.04 1.30 1.12 1.02 2880 2160 1760 1440 1250 1080 960 13.09 3 13.09 13.18 13.09 4 5 6 13.05 13.09 13.09 7 8 9 (4, 1)* Graphics String Format The format DCS introducer Graphics for a string of graphics ~ Protocol DCS selector Pn Data data is ESC P or as follows: g | Control characters or definitions DCS terminator DCS Introducer When your mode and terminal When the Your the is Cl control the protocol as terminal is that is out recognized., Graphics After will will not selector character "q" ¢ the if before DCS your the enters selector. the the DCS The DCS sequence terminal ESC begins P to section. mode if the terminal correct receives a protocol protocol character selector 1is Selector the DCS introducer, terminal to enter the the graphics graphics protocol mode. of a numeric parameter and (octal 161). The Letterprinter 100 values for the numeric parameter selects default graphics protocol Letterprinter 1l it escape correct selector: 0 the data consists following protocol or received in your DCS is or range introducer, protocol the remain Protocol cause in received, of receiving DCS code selector described \ correct 120). data selector the for @33 process receives waits introducer (octal ESC column selects protocol DECwriter as the final recognizes the in the (same Selectors 2 Selectors 10 as contained within 100 graphics 5 for the version 5) through -- 1IV/Letterprinter protocol and 100). (same selector The 9 255 are are given in reserved Table for 1 4-2. future development. DATA The data characters or printable a graphics data. The string control can either characters terminal responds while in the graphics mode, and the printable characters received are described in sections. NOTE: Although stream, the GR codes are not allowed Letterprinter 100 processes graphic mode the same as stripped. This type of terminals. within GR to the the be control which your format of following the graphics data codes while the in it does GL codes; that is the 8th bit is error handling may be different in future Control Characters control characters: In the graphics mode, your terminal will respond to the following ® ANSI Control €) Private Control Characters Printable Data the correct in Table 4-4. | is selector protocol the 040 -- @76 octal are graphics mode, in 1in The private control characters processed are which range, described After Characters octal in the 000 to @37 The ANSI control characters range and in the 200 to 237 octal range, which are processed in graphics mode, are described in Table 4-3. received, your terminal will consider any character received in the 077 -- 176 octal range as printable. With the 8th bit set, any character in the 277 -376 range will also be considered printable. These characters define a column of six dots to be printed, which allows selective firing eighth of and the top ninth six printhead wires printhead are wires (Figure 4-3). not used 1in The the seventh, graphics mode. Printable characters are processed by bit masking. The offset (octal @77) is subtracted from the binary value of the character received with the result that a printhead wire is fired and a dot printed when the resultant bit is set to one. The least significant bit is associated with the top printhead wire (wire one). The sixth bit is associated with the sixth printhead wire, and is the last wire that can be fired in the graphics mode. Refer to Table 4-5 for examples of printable characters. Repeat Sequence A repeat sequence allows your Letterprinter 100 terminal to print a dot column consecutively for a specified number of times. This repeat sequence Repeat is defined as introducer Numeric parameter Dot column ! (octal follows. 041) Number of times to print the dot column (characters in the octal range of 060 -- 071) Character in the 877 -- 176 octal range The repeat sequence introducer is the private control character (octal ! @41). The numeric parameter specifies the number of times to print the column definition that follows. The numeric parameter is a string of characters in the 960 -- @71 octal range. If you do not specify a numeric parameter, a value of zero is assumed for the numeric parameter. If the value you specified is larger than the graphic printer limit for numeric parameters (64K), the limit 1is assumed. All decimal digits are processed as part of the count. 4-8 Table 4-3 Graphics ANSI Control Characters Octal Name Mnemonic Code Cancel CAN @30 Function Immediately causes from Substitute SUB @32 the graphics Replaces any received with an exit mode. character errors. When received in the graphics mode, SUB is processed as a one Escape ESC @33 column Causes from the the process All Cl1 (see Control Table Codes NOTE: text BS, NUL, EOT, mode (refer LF, CR, FF, 2-2) 200 Cause through from 237 process ENQ, BEL, DEL, to Table 2-1). HT, and VT are SI, and ignored in space. the the the SO terminal graphics exit and sequence. terminal graphics the to mode Cl are graphics to exit mode and codes. processed mode. as 1in Table 4-4 Name | Graphics Graphics Private Control Characters Octal ASCII Mnemonic Code Character Function DECGRI g41 ! Begin Repeat repeat sequence., Introducer Graphics Carriage DECGCR g44 S Returns to graphics left margin. DECGNL @55 - Returns to graphics left margin and Return advances I graphics N Graphics New Line 10 to next line. =l CAD - W&c S qvl. p4\ Al'hlfl Figure 4-3 Variable Dot 4-11 ‘» Spacing Table 4-5 Printable Character Examples Binary Value Character Octal Value (minus Offset) Wires Fired ? @77 30000030 o) o) o o o o @ 100 go00a3001 * o o) o o o ~ 176 99111111 : * * * * - 137 30100000 o o o o o) * The dot printed All column as (a many control character times as the repeat sequence All unspecified DCS Terminator The DCS usual. is characters In their usual 972 -- control encoding function is parameter mode (cancel), cause the your ESC ! Cl Text mode features ® Vertical graphics position will position The first will exit It will modified in the same the graphics will be be according graphics as text mode vertical motion to advance to executing the command. the set as to the mode. before command next cause restored. entering mode. terminal 1is causes character terminal while be encoding 234)]. to text mode (escape) or any Cl to pitch) be received ignored. control your (margins, characters graphics mode, are resets revert terminal and is count. sequence [7-bit (octal ESC ® the ST and both Horizontal are CAN the before range) character @76) graphics from your octal repeat control the exit ® during a actions. control 176 The also addition, ST 8-bit After an follows: @ -- numeric the (octal the 134) terminal to exit character processing. control @77 the count. your mode. by example, characters @33 the received For terminator (octal in specified characters processed ESC \ as will text cause mode 1line GRAPHICS In MODE PITCH graphics mode, the numeric pitch parameter is GRAPHICS set MODE to in 1/12 the horizontal the graphics lines per line the horizontal Table the 4-2. conditions set according to the selector. The vertical MARGINS the In is inch. Maximum Line Length The graphics mode maximum mode. pitch protocol pitch and graphics To must use mode, the be met ® The print ® The actual area length the before you be horizontal 13.2 Text S) Text mode ® Active mode left margin be must be column 4-13 must setting, set be set one. the the print area, while in the length is given length, inches right margin must column must line enter pitch inch (depends on pitch density selection). ® line can on selected maximum maximum must depends margins the text 1in following graphics mode. wide. be 10 pitch to to characters per mode, the column column one. 132. and , Left Margin After entering the graphics mode, the left margin is repositioned to the right of the last printed column in the text mode (maximum of 1 character width). The graphics mode left margin is calculated as follows: X (text character width) (Active Column - 1) Left Margin = Graphics Character Width Refer to Table 4-6 for Character Width are in transitions. text character width. If 4-7 graphics character width and Table number. whole next the to there is a remainder, round Right Margin After entering the graphics mode, to the left of the text mode the right margin is repositioned right margin (maximum of 1 character width). The graphics mode right margin is calculated as follows: Right Margin = 01ld Right Margin X text character width Graphics Character Width Character graphics Discard Width are in character width any remailnder. transitions. and Table Refer to Table 4-6 for 4-7 text character width. If you attempt to print past the right margin, your terminal respond according to the auto wraparound mode selection. will You can use superscripts or subscripts to label graphic data with text mode comments. Reverse line feed is not recommended because the graphics mode vertical pitch may not be the same as the text mode vertical pitch. ANSWERBACK MESSAGE Answerback is answerback feature a ENTRY user defined message of up to thirty characters that can be used to identify your terminal for the computer. This message is transmitted upon request (ENQ control character) or auto the to (refer enabled if connection wupon automatically in the Operator Guide). Both printable characters and control characters can be part of the answerback message. To allow downline entry of both printable and control characters, the message is hexadecimally encoded. Table 4-6 Graphics Character Width, Horizontal Margin Adjustment Graphics * Horizontal Pitch Graphics Selection Character Width Parameter In 2 60 .791 3 90 11 4 .136 120 .182 5,9,1 6 7 7.33 5.5 159 180 227 272 210 4,43 3.66 32 8 9 3.15 240 270 .36 .409 2.75 2.44 Transitions and Character Width In Inches Characters Per Inch Table Selection Parameter 1,0 2 3 4 5 6 7 8 Width, Text Character Horizontal Margin Adjustment 4-7 Text Horizontal Pitch and Text Character Width In Transitions Character Width In Inches Characters Per Inch 66 55 50 40 132 o1 .083 375 .70 . 2 .16 10 12 13.2 16.5 5 110 100 80 .15 .12 6 6.6 8.25 Answerback Message The format for DCS introducer Answerback an Format answerback message is ! ESC DCS protocol selector Pn Data terminator DCS Introducer When the and waits ST terminal for receives the correct the Cl control code (octal @33 129). The answerback DCS protocol the DCS if the before the answerback entry Protocol causes mode. meSsage entry character. 1 (octal NOTE: The The stored store in is protocol equivalent by format. DCS your terminal and v introducer, the Your is a the enter is ESC text P of the terminal will is not out of recognized. answerback the selector numeric protocol (octal 166). selector erased. memory is remains for for memory the protocol answerback the parameter selector protocol operating user permanent performed. to protocol of answerback in selector mode Selector the consists the followed DCS introducer if the answerback protocol selector terminal receives a character that is answerback stored is Text enters DCS encoding hexadecimal answerback ©61) When message in it The mode receiving selector coded introducer, 7 selector or Answerback its Message \ bit the After DCS Answerback ESC or remain in received, range or selector. message follows: P protocol answerback as V Encoded DCS is or described and the is message answerback a final Letterprinter recognized, However, same the until the message the next Data After the answerback protocol selector has been received, control characters (0 -- 037 and 177 octal range) are execute d as usual. Hexadecimal -- 146, digits octal equivalent message. of Any answerback When the the are message answerback in to message from using operating If The message padding included in NUL the -- hex protocol time received. NOTE: to @ the memory every is not control message. in grouped character character stored the (characters range) 060 @71, 101 -- to give entered in the hexadecimal the answerback be 377 (octal) encoding erased. pair made 30 -- pairs selector is a the in of is system be entered (see recognized, the a character hexadecimal digits are long 141 in the example) . Then, characters characters can 106, message is added has been automatically. needed, they must be Example: The following string will downline the message "LAl0@": DCS introducer DSC selector Protocol terminator Hex encoded message "LAlQgQ"TM ESC £ 1 \Y 4 C 4 1 3 1 3 @ is not is received, 3 @ ESC \ @33 120 061 166 064 103 064 061 063 061 063 0#60 063 060 033 134 Octal Error Equivalent Processing Any character received, hex digit, discarded. If an odd processed is number by of itself. which digits a control the character 1last Once 30 answerback message characters are received, characters are or digit a is additional discarded. NOTE: As mentioned in the 7/8 bit environment section, no conversion takes place when sending the answerback message. Any character sent on a 7-bit data path is truncated to 7-bits by dropping the MSB. When in the 8-bit mode with Cl transmission disabled, all Cl codes are truncated to 7 bits.
Home
Privacy and Data
Site structure and layout ©2025 Majenko Technologies