LP 1000   (260-2804)         Tandy Control Codes       Faxback Doc. # 4734

The following shows codes in the Tandy modes. The table shows the effect of
each code in the three modes (data processing, word processing, & graphics.

___________________________________________________________________________
   |    |      |      Data      |      Data      |              |
Hex| Dec| ASCII|   Processing   |   Processing   |   Graphics   | Remarks
   |    |      |      Mode      |      Mode      |              |
___|____|______|________________|________________|______________|_________
08 |08  |BS n  |Backspace by n  | Same.          |Ignored. n is |1<n<255
 n | n  |      |(1 dot = 1/180",|                |treated as    | - - 
   |    |      |or 1/300'' with |                |data          |
   |    |      |condensed char- |                |              |
   |    |      |acters). n is a |                |              |
   |    |      |binary number.  |                |              |
___|____|______|________________|________________|______________|_________
0A |10  | LF   |Execute line    |Execute 1/6"    |Execute 7/60" | 
   |    |      |feed. If Item 3 |line feed. If   |line feed. If | 
   |    |      |of the Mode Set-|item 3 of the   |item 3 of the |
   |    |      |ting Table is   |Mode Setting    |Mode Setting  |
   |    |      |set to 3 or 4,  |Table is set to |Table is set  |
   |    |      |a CR is also    |3 or 4, a CR is |to 3 or 4, a  |
   :    :      :executed.       |also executed.  |CR is also    |
   |    |      |                |                |executed.     |
___:____|______|________________|________________|______________|_________
OC |12  | FF   |Execute form    |Same.           |Same.         |
   |    |      |feed. Buffer    |                |              |
   |    |      |contents print- |                :              |
   :    :      :ed out and AP   |                |              |
   |    |      |moves to the top|                |              |
   |    |      |of next page.   |                |              |
___|____|______|________________|________________|______________|_________
0D |13  |CR    |Execute carriage|Same.           | Same.        |
   |    |      |return. If Item |                |              |
   |    |      |3 of the Mode   |                |              |   
   :    :      :Setting Table   |                |              |
   |    |      |is set to 2 or  |                |              |
   |    |      |4, or if the 27 |                :              :
   :    :      :22 command has  |                |              |
   |    |      |been received, a|                |              |
   |    |      |LF is also      |                |              |
   |    |      |executed.       |                |              |
___|____|______|________________|________________|______________|_________
0E |14  |SO    |End underlining.|Same.           | Ignored.     |
___|____|______|________________|________________|______________|_________
0F |15  |SI    |Start underline.|Same.           | Ignored.     |
___|____|______|________________|________________|______________|_________
12 |18  |DC2   |Select Graphics |Same.           | Ignored.     |
   |    |      |Mode.           |                |              |
___|____|______|________________|________________|______________|_________
13 |19  |DC3   |Ignored.        |Select Data     | Ignored.     |
   |    |      |                |Processing Mode |              |
___|____|______|________________|________________|______________|_________
14 |20  |DC4   |Select Word     |Ignored.        |Ignored.      |
   |    |      |Processing Mode.|                |              |         
___|____|______|________________|________________|______________|_________
1B |27  |Esc n |Insert n blank  |Same.           |Ignored.      |1 <n <9
 n | n  |      |dots. n is a    |                |              |  -  -
   |    |      |number 1-9 that |                |              |
   |    |      |specifies the   |                |              |
   |    |      |width of the    |                |              |
   |    |      |space character |                |              |
   |    |      |in 1/180" units.|                |              |
   |    |      |With condensed  |                |              |
   |    |      |characters, n   |                |              |
   |    |      |specifies the   |                |              |
   |    |      |width in 1/300" |                |              |
   |    |      |units.          |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC LF|Set reverse line|Execute 1/6"    |Ignored.      |
 0A| 10 |      |feed of 1/6"    |reverse line    |              |
   |    |      |                |feed.           |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC SO|Start elongation|Same.           |Same.         |
 0E| 14 |      |Elongated charac|                |              |
   |    |      |ters are twice  |                |              |
   |    |      |the width of nor|                |              |
   |    |      |mal characters. |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC SI| End elongation.|Same.           |Same.         |
 0F| 15 |      |                |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC   |Move the AP to  |Same.           |Same, except  |n1 is MSB;    
 10| 16 | DLE  |the point (n1 x :                |that the dot  |n2 is LSB.
 n1| n1 |  n1  |256) + n2 dots  |                |pitch is      |       
 n2| n2 |   n2 |from left limit |                |1/60"         |
   |    |      |of the page. Dot|                |              |
   |    |      |pitch is 1/180",|                |              |
   |    |      |or 1/300" with  |                |              |
   |    |      |condensed char- |                |              |
   |    |      |acters.         |                |              
___|____|______|________________|________________|______________|__________
1B |27  |ESC   |Select propor-  |Same.           |Ignored.      |
 11| 17 | DCI  |tional spacing. |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC   |Select corr. 10 |Same.           |Ignored.      |
 12| 18 | DC2  |CPI characters. |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC   |Select stan. 10 |Same.           |Ignored.      |
 13| 19 | DC3  |CPI characters. |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC   |Select condensed|Same.           | Ignored.     |
 14| 20 |  DC4 |(16.7 CPI)      |                |              |
   :    :      |characters.     |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC   |Select CR only. |Same.           |Same.         |See next
 15| 21 |  NAK |When a CR is    |                |              |command.
   |    |      |received, no LF |                |              |
   |    |      |is executed.    |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC   |Select New Line |Same.           |Same.         |See
 16| 22 |  SYN |(NL). When a CR |                |              |previous
   |    |      |is received, a  |                |              |command.
   |    |      |LF is also      |                |              |
   |    |      |executed.       |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC   |Select stan. 12 |Same.           |Ignored.      |
 17| 23 |  ETB |CPI characters. |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC FS|Set half line-  |Execute half-LF.|Ignored.      |
 1C| 28 |      |feed of 1/12".  |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC GS|Select corr. 12 |Same.           | ignored.     |
 1D| 29 |      |CPI characters. |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC RS|Set reverse half|Execute reverse |Ignored.      |
 1E| 30 |      |LF of 1/12"     |half LF.        |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC US|Start boldface  |Same.           |Ignored.      |
 1F| 31 |      |printing. Each  |                |              |
   |    |      |boldface charac-|                |              |
   |    |      |ter is elongated|                |              |
   |    |      |and overlapped  |                |              |
   |    |      |by two dots.    |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC SP|End boldface    |Same.           |Ignored.      |
 20| 32 |      |printing.       |                |              |
___|____|______|________________|________________|______________|__________
1B |28  |ESC ! |Select IBM      |Same.           |Same.         |
 21| 33 |      |command mode.   |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC & |Load user-      |Same.           |Ignored.      |
 26| 38 |      |defined font.   |                |              |
c11| 11 |      |                |                |              |
 c2| c2 |      |                |                |              |
...| ...|      |                |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC 1 |Execute 1/20" LF|Same.           |Same.         |
 31| 49 |      |                |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC 4n|Set form length |Same.           |Same          |0<n<255
 34| 52 |      |at n lines.     |                |              |
 n | n  |      |                |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC 6 |Set 1/6" line   :Ignored.        |Ignored.      |
 36| 54 |      |feed.           |                |              |
___|____|______|________________|________________|______________|_________
1B |27  |ESC 8 |Set 3/4-line    |Execute 3/4-LF  |Ignored.      |
 38| 56 |      |feed (1/8").    |(1/8'').        |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC : |Select IBM      |Same.           |Ignored.      |
 3A| 58 |      |Character Set 1.|                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC;  |Select Tandy    |Same.           |Ignored.      |
 3B| 59 |      |Character Set.  |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC =n|Designate font n|Same.           |Ignored.      |49("1")<
 3D| 61 |      |as the 10 CPI   |                |              |n<56("7")
 n | n  |      |correspondence  |                |              |
   |    |      |font.           |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC >n|Designate font n|Same.           |Ignored.      |49("1")<
 3E| 62 |      |as the 12 CPI   |                |              |n<56("7")
 n | n  |      |correspondence  |                |              |
   |    |      |font.           |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC ?n|Designate font n|Same.           |Ignored.      |49("1")<
 3F| 63 |      |as the propor-  |                |              |n<56("7")
 n | n  |      |tional spacing  |                |              |
   |    |      |font.           |                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC Bn|Select italic   |Same.           |Ignored.      |
 42| 66 |      |characters.     |                |n is treated  |
 n | n  |      |n=0 italics OFF |                |as data.      |
   |    |      |n=1 italics ON  |                |              |
___|____|______|________________|________________|______________;__________
lB |27  |ESC G |Execute 2/15"   |Same.           |Same.         |
 47| 71 |      |line feed.      |                |              |
___|____|______|________________|________________|______________|__________
IB |27  |ESC Hn|Set number of   |Same.           |Ignored.      |O<n<FFH.
 48| 72 |      |lines for bottom|                |              |
 n | n  |      |margin (or perf-|                |              |
   |    |      |oration skip).  |                |              |
   |    |      |The number of   |                |              |
   |    |      |lines printed   |                |              |
   |    |      |per page is eq- |                |              |
   |    |      |ual to the form |                |              |
   |    |      |length(in lines)|                |              |
   |    |      |minus n.        |                |              |
___|____:______:________________|________________|______________|__________
1B |27  |ESC I |Print high reso-|Same.           |Same.         |n1 is MSB
 49| 73 | n1 n2|lution graphics |                |              |n2 is LSB
 n1| n1 |d1 d2 |data. The number|                |              |
   |    |d3 ...|of point columns:                |              |
 n2| n2 |      |is equal to (n1 |                |              |
 dl| dl |      |x 256)+ n2, dl, |                |              |
 d2| d2 |      |d2, and d3 are  |                |              |
 d3| d3 |      |data bytes that |                |              |
...|... |      |specify the dot |                |              |
   |    |      |pattern for each|                |              |
   |    |      |each point col- |                |              |
   |    |      |umn. Therefore, |                |              |
   |    |      |the number of d |                |              |
   |    |      |bytes must be   |                |              |
   |    |      |equal to the    |                |              |
   |    |      |number of point |                |              |
   |    |      |columns times   |                |              |
   |    |      |three.          |                |              |
___|____|______|________________|________________|______________|_________
1B |27  |ESC M |Select microfont|Same.           |Ignored.      |
 4D| 77 |      |                |                |              |
___|____|______|________________|________________|______________|_________
1B |27  |ESC Qn|Set left margin.|Same.           |Ignored.  n is|O<n<FFH.
 51| 81 |      |The distance of |                |treated as    :
 n | n  |      |the margin is   |                |data.         |
   |    |      |specified by n x|                |              |
   |    |      |HMI, measured   |                |              |
   |    |      |from the left   |                |              |
   |    |      |limit.          |                |              |
___|____|______|________________|________________|______________|_________
1B |27  |ESC Rn|Set right margin|Same.           |Ignored.      |O<n<FFH.
 52| 82 |      |The distance of |                |n is treated  |
 n | n  |      |the margin is   |                |as data.      |
   |    |      |specified by n x|                |              |
   |    |      |HMI, measured   |                |              |
   |    |      |from the left   |                |              |
   |    |      |limit.          |                |              |
___|____|______|________________|________________|______________|_________
1B |27  |ESC Sn|Start super-/   |Same.           |Ignored. n is |
 53| 83 |      |subscript. n=0  |                |treated as    |
 n | n  |      |specifies super-|                |data.         |
   |    |      |scripted charac-|                |              |
   |    |      |ters; n=1 speci-|                |              |
   |    |      |fies subscripted|                |              |
   |    |      |characters.     |                |              |
___|____|______|________________|________________|______________|_________
1B |27  |ESC W |Start double-   | Same.          |Ignored.      |
 57| 87 |      |height printing.|                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC X |End super-/sub- |Same.           |Ignored.      |
 58| 88 |      |script printing.:                |              |
___|____|______|________________|________________|______________|__________
1B |27  |ESC Yn|Select interna- |Same.           |Ignored.      |
 59| 89 |      |tional character|                |              |
 n | n  |      |set.            |                |              |
   |    |      |n = 20H:USA     |                |              |
   |    |      |     21H:Germany|                |              |
   |    |      |     22H:France |                |              |
   |    |      |     23H:Norway |                |              |
   |    |      |     24H:Sweden |                |              |
   |    |      |     25H:Denmark|                |              |
   |    |      |     26H:Finland|                |              |
   |    |      |     27H:Italy  |                |              |
   |    |      |     28H:Spain  |                |              |
   |    |      |     29H:England|                |              |
   |    |      |     2AH:Belgium|                |              |
   |    |      |     2BH:Holland|                |              |
___|____|______|________________|________________|______________|________
1B |27  |ESC Zn|Enhanced print. |Same.           |Ignored.      |
 5A| 90 |      |n=0 enhanced OFF|                |              |
 n | n  |      |n=1 enhanced ON |                |              |
___|____|______|________________|________________|______________|_________
1C |28  |FS    |Print character |Same.           |Ignored.      |
   |    |n1 n2 |n2 n1 times. If |                |              |
 nl| nl |      |n2 is an under- |                |              |
 n2| n2 |      |fined character,|                |              |
   |    |      |no-response sym-|                |              |
   |    |      |bol "X" printed.|                |              |
___|____|______|________________|________________|______________|_________
1E |30  |RS    |Ignored.        |Ignored.        |End graphics  |
   |    |      |                |                |mode & return |
   |    |      |                |                |to previous   |
   |    |      |                |                |mode.         |
___|____|______|________________|________________|______________|_________
7F |127 |DEL   |Ignored.        |Ignored.        |Ignored.      |
___|____|______|________________|________________|______________|_________
FF |255 |      |Ignored.        |Ignored.        |Treated as    |
   |    |      |                |                |data.         |
___|____|______|________________|________________|______________|_________
                                                                      
Other codes in the function area (02 to 1F) are either ignored, or are
printed as the no-response symbol "X".
                                                                          
(dkh-07/27/93)

Privacy Policy