Open-Source-Software-Entwicklung und Downloads

Browse Subversion Repository

Diff of /trunk/doc/en/html/setup/teraterm-prn.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3226 by maya, Tue Mar 24 09:37:20 2009 UTC revision 3227 by maya, Tue Mar 24 15:10:33 2009 UTC
# Line 1  Line 1 
1  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2    "http://www.w3.org/TR/html4/strict.dtd">    "http://www.w3.org/TR/html4/strict.dtd">
3  <HTML>  <HTML>
4  <HEAD>  <HEAD>
5  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6  <TITLE>Printing (Tera Term setup file)</TITLE>  <TITLE>Printing (Tera Term setup file)</TITLE>
7  <META http-equiv="Content-Style-Type" content="text/css">  <META http-equiv="Content-Style-Type" content="text/css">
8  <link rel="stylesheet" href="../style.css" type="text/css">  <link rel="stylesheet" href="../style.css" type="text/css">
9  </HEAD>  </HEAD>
10  <BODY>  <BODY>
11    
12  <h1><a name="delay">Delay of path-through printing</a></h1>  <h1><a name="delay">Delay of path-through printing</a></h1>
13    
14  <p>  <p>
15  You can set the delay of pass-through printng. A pass-through sequence is initiated by ESC[5i and terminated by ESC[4i. The received data between ESC[5i and ESC[4i are printed when the delay time has passed since Tera Term received ESC[4i. If the second ESC[5i is received before the delay of the first pass-through sequence has passed, the first and second printing data are combined and printed at once after the delay of the second sequence has passed. Namely, multiple consecutive sequences with intervals less than the delay are treated as one printing sequence. To change the delay of pass-through printing, edit the PassThruDelay line in the [Tera Term] section of the setup file like the following:  You can set the delay of pass-through printng. A pass-through sequence is initiated by ESC[5i and terminated by ESC[4i. The received data between ESC[5i and ESC[4i are printed when the delay time has passed since Tera Term received ESC[4i. If the second ESC[5i is received before the delay of the first pass-through sequence has passed, the first and second printing data are combined and printed at once after the delay of the second sequence has passed. Namely, multiple consecutive sequences with intervals less than the delay are treated as one printing sequence. To change the delay of pass-through printing, edit the PassThruDelay line in the [Tera Term] section of the setup file like the following:
16  </p>  </p>
17    
18  <pre>  <pre>
19  PassThruDelay=&lt;delay in sec&gt;  PassThruDelay=&lt;delay in sec&gt;
20  </pre>  </pre>
21    
22  <pre>  <pre>
23  Default:  Default:
24  PassThruDelay=3  PassThruDelay=3
25  </pre>  </pre>
26    
27    
28  <h1><a name="direct">Path-through printing directly to a port</a></h1>  <h1><a name="direct">Path-through printing directly to a port</a></h1>
29    
30  <p>  <p>
31  You can send the data of pass-through printing to a port by editing the PassThruPort line in the [Tera Term] section of the setup file like the following:  You can send the data of pass-through printing to a port by editing the PassThruPort line in the [Tera Term] section of the setup file like the following:
32  </p>  </p>
33    
34  <pre>  <pre>
35  PassThruPort=&lt;port&gt;  PassThruPort=&lt;port&gt;
36  </pre>  </pre>
37    
38  <p>  <p>
39  The &lt;port&gt; string specifies a port to which data is sent. The format of &lt;port&gt; string is the same as that of the MS-DOS "mode" command. If no port is specified, Tera Term prints the data by using Windows printing functions.  The &lt;port&gt; string specifies a port to which data is sent. The format of &lt;port&gt; string is the same as that of the MS-DOS "mode" command. If no port is specified, Tera Term prints the data by using Windows printing functions.
40  </p>  </p>
41    
42  <pre>  <pre>
43  Example:  Example:
44    PassThruPort=LPT1    PassThruPort=LPT1
45    PassThruPort=COM2: 9600,n,8,1,x    PassThruPort=COM2: 9600,n,8,1,x
46  </pre>  </pre>
47    
48  <pre>  <pre>
49  Default:  Default:
50  PassThruPort=  PassThruPort=
51  </pre>  </pre>
52    
53  <p>  <p>
54  For Russian mode, you should see also <a href="#russfont">Russian code set of the printer font</a>  For Russian mode, you should see also <a href="#russfont">Russian code set of the printer font</a>
55  </p>  </p>
56    
57    
58  <h1><a name="formfeed">Disabling the form-feed in the path-through printing</a></h1>  <h1><a name="formfeed">Disabling the form-feed in the path-through printing</a></h1>
59    
60  <p>  <p>
61  You can disable the form-feed (moving to the next paper) which is caused by an FF character in the pass-through printing. To do this, edit the PrnConvFF line in the [Tera Term] section of the setup file like the following:  You can disable the form-feed (moving to the next paper) which is caused by an FF character in the pass-through printing. To do this, edit the PrnConvFF line in the [Tera Term] section of the setup file like the following:
62  </p>  </p>
63    
64  <pre>  <pre>
65  PrnConvFF=on  PrnConvFF=on
66  </pre>  </pre>
67    
68  <p>  <p>
69  Then, the FF character causes the carriage-return and line-feed instead of the form-feed.  Then, the FF character causes the carriage-return and line-feed instead of the form-feed.
70  </p>  </p>
71    
72  <p>  <p>
73  Note: This option is ignored for the <a href="#direct">direct pass-through printing</a>.  Note: This option is ignored for the <a href="#direct">direct pass-through printing</a>.
74  </p>  </p>
75    
76  <pre>  <pre>
77  Default:  Default:
78  PrnConvFF=off  PrnConvFF=off
79  </pre>  </pre>
80    
81    
82  <h1><a name="font">Printer font</a></h1>  <h1><a name="font">Printer font</a></h1>
83    
84  <p>  <p>
85  In the default setup, the font used for printing is the same as one for displaying text on the screen. You can specify a font for printing, by doing the following procedure:  In the default setup, the font used for printing is the same as one for displaying text on the screen. You can specify a font for printing, by doing the following procedure:
86  </p>  </p>
87    
88  <ol>  <ol>
89   <li>Change the font for displaying text by using the [Setup] Font command and print text.</li>   <li>Change the font for displaying text by using the [Setup] Font command and print text.</li>
90   <li>If you find a nice font for printing, save the current setup to the setup file by using the [Setup] Save setup command.</li>   <li>If you find a nice font for printing, save the current setup to the setup file by using the [Setup] Save setup command.</li>
91   <li>In the [Tera Term] section of the setup file, copy parameters of the VTFont line (for example "Terminal,0,13,1") to the PrnFont line.</li>   <li>In the [Tera Term] section of the setup file, copy parameters of the VTFont line (for example "Terminal,0,13,1") to the PrnFont line.</li>
92   <li>Restore the font for displaying text.</li>   <li>Restore the font for displaying text.</li>
93  </ol>  </ol>
94    
95  <pre>  <pre>
96  Example:  Example:
97  PrnFont=Terminal,0,13,1  PrnFont=Terminal,0,13,1
98  </pre>  </pre>
99    
100  <pre>  <pre>
101  Default:  Default:
102  PrnFont=  PrnFont=
103  </pre>  </pre>
104    
105  <p>  <p>
106  For Russian mode, you should see also <a href="#russfont">Russian code set of the printer font</a>  For Russian mode, you should see also <a href="#russfont">Russian code set of the printer font</a>
107  </p>  </p>
108    
109    
110  <h1><a name="margin">Page margins</a></h1>  <h1><a name="margin">Page margins</a></h1>
111    
112  <p>  <p>
113  You can specify the left, right, top and bottom margins of a page for printing by editing the PrnMargin line in the [Tera Term] section of the setup file like the following:  You can specify the left, right, top and bottom margins of a page for printing by editing the PrnMargin line in the [Tera Term] section of the setup file like the following:
114  </p>  </p>
115    
116  <pre>  <pre>
117  PrnMargin=&lt;left&gt;,&lt;right&gt;,&lt;top&gt;,&lt;bottom&gt;  PrnMargin=&lt;left&gt;,&lt;right&gt;,&lt;top&gt;,&lt;bottom&gt;
118  </pre>  </pre>
119    
120  <p>  <p>
121  These margins should be specified in unit of 1/100 inches.  These margins should be specified in unit of 1/100 inches.
122  </p>  </p>
123    
124  <pre>  <pre>
125  Default:  Default:
126  PrnMargin=50,50,50,50  PrnMargin=50,50,50,50
127  </pre>  </pre>
128    
129    
130  <h1><a name="scale">Scaling factors for printing</a></h1>  <h1><a name="scale">Scaling factors for printing</a></h1>
131    
132  <p>  <p>
133  When a printed image is too small or too large, usually you can enlarge or shrink the image by changing the scaling factor in the "Printer" section of Control Panel. If the printer driver does not support scaling, you can specify scaling factors for horizontal and vertical directions. To specify scaling factors, edit the VTPPI and TEKPPI lines in the [Tera Term] section of the setup file:  When a printed image is too small or too large, usually you can enlarge or shrink the image by changing the scaling factor in the "Printer" section of Control Panel. If the printer driver does not support scaling, you can specify scaling factors for horizontal and vertical directions. To specify scaling factors, edit the VTPPI and TEKPPI lines in the [Tera Term] section of the setup file:
134  </p>  </p>
135    
136  <pre>  <pre>
137  VTPPI=&lt;x(horizontal), y(vertical); pixels per inch)&gt;    ; for the VT window  VTPPI=&lt;x(horizontal), y(vertical); pixels per inch)&gt;    ; for the VT window
138  TEKPPI=&lt;x(horizontal), y(vertical); pixels per inch)&gt;   ; for the TEK window  TEKPPI=&lt;x(horizontal), y(vertical); pixels per inch)&gt;   ; for the TEK window
139  </pre>  </pre>
140    
141  <p>  <p>
142  The scaling factors should be specified in unit of pixels per inch. If the printed image is too small (large), increase (decrease) the scaling factors. If at least one of the specified factor is zero, Tera Term takes the default scaling factors from the printer driver.  The scaling factors should be specified in unit of pixels per inch. If the printed image is too small (large), increase (decrease) the scaling factors. If at least one of the specified factor is zero, Tera Term takes the default scaling factors from the printer driver.
143  </p>  </p>
144    
145  <pre>  <pre>
146  Example:  Example:
147  VTPPI=300,300  VTPPI=300,300
148  TEKPPI=300,300  TEKPPI=300,300
149  </pre>  </pre>
150    
151  <pre>  <pre>
152  Default:  Default:
153  VTPPI=0,0  VTPPI=0,0
154  TEKPPI=0,0  TEKPPI=0,0
155  </pre>  </pre>
156    
157    
158  <h1><a name="russfont">Russian code set of the printer font (Russian mode only)</a></h1>  <h1><a name="russfont">Russian code set of the printer font (Russian mode only)</a></h1>
159    
160  <p>  <p>
161  When you specify a <a href="#font">printer font</a> or a <a href="#direct">printer device</a>, you should specify also the character set for the printer font or device. Otherwise, Russian characters may not be printed correctly. To specify the character set, edit the RussPrint line in the [Tera Term] section of the setup file like the following:  When you specify a <a href="#font">printer font</a> or a <a href="#direct">printer device</a>, you should specify also the character set for the printer font or device. Otherwise, Russian characters may not be printed correctly. To specify the character set, edit the RussPrint line in the [Tera Term] section of the setup file like the following:
162  </p>  </p>
163    
164  <pre>  <pre>
165  RussFont=&lt;char set&gt;  RussFont=&lt;char set&gt;
166  </pre>  </pre>
167    
168  <pre>  <pre>
169  where &lt;char set&gt; should be one of the following:  where &lt;char set&gt; should be one of the following:
170    Windows    Windows
171    KOI8-R    KOI8-R
172    CP-866    CP-866
173    ISO-8859-5    ISO-8859-5
174  </pre>  </pre>
175    
176  <pre>  <pre>
177  Default:  Default:
178  RussPrint=Windows  RussPrint=Windows
179  </pre>  </pre>
180    
181    
182  </BODY>  </BODY>
183  </HTML>  </HTML>

Legend:
Removed from v.3226  
changed lines
  Added in v.3227

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26