Develop and Download Open Source Software

Browse Subversion Repository

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10841 - (show annotations) (download) (as text)
Tue Aug 15 10:08:31 2023 UTC (9 months, 2 weeks ago) by nmaya
File MIME type: text/html
File size: 5084 byte(s)
設定値のデフォルトを変更した

- ClearOnResize
  on -> off
- PrinterCtrlSequence
  on -> off
- AuthBanner
  1 -> 3

ticket #48317
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
3 <HTML>
4 <HEAD>
5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6 <TITLE>Printing (Tera Term setup file)</TITLE>
7 <META http-equiv="Content-Style-Type" content="text/css">
8 <link rel="stylesheet" href="../style.css" type="text/css">
9 </HEAD>
10 <BODY>
11
12 <h1 id="delay">Delay of path-through printing</h1>
13
14 <p>
15 You can set the delay of pass-through printing. 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>
17
18 <pre>
19 PassThruDelay=&lt;delay in sec&gt;
20 </pre>
21
22 <pre>
23 Default:
24 PassThruDelay=3
25 </pre>
26
27
28 <h1 id="direct">Path-through printing directly to a port</h1>
29
30 <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:
32 </p>
33
34 <pre>
35 PassThruPort=&lt;port&gt;
36 </pre>
37
38 <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.
40 </p>
41
42 <pre>
43 Example:
44 PassThruPort=LPT1
45 PassThruPort=COM2: 9600,n,8,1,x
46 </pre>
47
48 <pre>
49 Default:
50 PassThruPort=
51 </pre>
52
53 <h1 id="ignoremc">Disabling the printing by the control sequence</h1>
54
55 <p>
56 You can enable the which invoked by the control sequence. To do this, edit the PrinterCtrlSequence line in the [Tera Term] section of the setup file like the following:
57 </p>
58
59 <pre>
60 PrinterCtrlSequence=on
61 </pre>
62
63 <pre>
64 Default:
65 PrinterCtrlSequence=off
66 </pre>
67
68
69 <h1 id="formfeed">Disabling the form-feed in the path-through printing</h1>
70
71 <p>
72 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:
73 </p>
74
75 <pre>
76 PrnConvFF=on
77 </pre>
78
79 <p>
80 Then, the FF character causes the carriage-return and line-feed instead of the form-feed.
81 </p>
82
83 <p>
84 Note: This option is ignored for the <a href="#direct">direct pass-through printing</a>.
85 </p>
86
87 <pre>
88 Default:
89 PrnConvFF=off
90 </pre>
91
92
93 <h1 id="font">Printer font</h1>
94
95 <p>
96 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:
97 </p>
98
99 <ol>
100 <li>Change the font for displaying text by using the [Setup] Font command and print text.</li>
101 <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>
102 <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>
103 <li>Restore the font for displaying text.</li>
104 </ol>
105
106 <pre>
107 Example:
108 PrnFont=Terminal,0,13,1
109 </pre>
110
111 <pre>
112 Default:
113 PrnFont=
114 </pre>
115
116 <h1 id="margin">Page margins</h1>
117
118 <p>
119 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:
120 </p>
121
122 <pre>
123 PrnMargin=&lt;left&gt;,&lt;right&gt;,&lt;top&gt;,&lt;bottom&gt;
124 </pre>
125
126 <p>
127 These margins should be specified in unit of 1/100 inches.
128 </p>
129
130 <pre>
131 Default:
132 PrnMargin=50,50,50,50
133 </pre>
134
135
136 <h1 id="scale">Scaling factors for printing</h1>
137
138 <p>
139 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:
140 </p>
141
142 <pre>
143 VTPPI=&lt;x(horizontal), y(vertical); pixels per inch)&gt; ; for the VT window
144 TEKPPI=&lt;x(horizontal), y(vertical); pixels per inch)&gt; ; for the TEK window
145 </pre>
146
147 <p>
148 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.
149 </p>
150
151 <pre>
152 Example:
153 VTPPI=300,300
154 TEKPPI=300,300
155 </pre>
156
157 <pre>
158 Default:
159 VTPPI=0,0
160 TEKPPI=0,0
161 </pre>
162
163
164 </BODY>
165 </HTML>

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