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>Tera Term command line</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 |
|
13 |
<h1>Tera Term command line</h1> |
14 |
|
15 |
<pre class="syntax"> |
16 |
TTERMPRO [ <host>[[:]<TCP port#>] | telnet://<host>[:<TCP port#>][/] | \\<server>\pipe\<pipe name>] |
17 |
[/B] [/BAUD=<speed>] [/C=<serial port#>] [/DS] [/E] [/ES] |
18 |
[/F=<setup file>] [/FD=<file transfer directory>] |
19 |
[/H] [/I] [/K=<keyboard setup file>] |
20 |
[/KR=<kanji code (receive)>] [/KT=<kanji code (transmit)>] |
21 |
[/L=<log file>] [/LA=<language>] [/M=<macro file>] [/NOLOG] |
22 |
[/P=<TCP port#>] [/R=<replay file>] [/SPEED=<speed>] [/T=<telnet flag>] |
23 |
[/TEKICON=<icon name>] [/TIMEOUT=<connecting timeout value>] |
24 |
[/V] [/VTICON=<icon name>] [/W="<window title>"] [/WAITCOM] |
25 |
[/X=<window pos (x)>] [/Y=<window pos (y)>] [/PIPE] |
26 |
[/AUTOWINCLOSE=<flag>] [/OSC52=<operations to permit>] |
27 |
[;<comment>] |
28 |
</pre> |
29 |
|
30 |
|
31 |
<h2 id="options">Options</h2> |
32 |
|
33 |
<dl> |
34 |
<dt id="host"><host></dt> |
35 |
<dd>Host name or IP address.</dd> |
36 |
|
37 |
<dt><host>:<TCP port#></dt> |
38 |
<dd><host> with a TCP port number.<br> |
39 |
":" is placed between <host> and <TCP port#>.</dd> |
40 |
|
41 |
<dt><host> <TCP port#></dt> |
42 |
<dd><host> with a TCP port number.<br> |
43 |
Space character(s) between <host> and <TCP port#>.<br> |
44 |
Number just after <host> is interpreted as a port number.</dd> |
45 |
|
46 |
<dt>telnet://<host>[:<TCP port#>][/]</dt> |
47 |
<dd>URL style - for telnet handler<br> |
48 |
TCP port number and "/" at the end are optional.<br> |
49 |
If TCP port number is omitted, use 23. (TCPPort setting in setup file is ignored.) |
50 |
</dd> |
51 |
|
52 |
<dt>\\<server>\pipe\<pipe name></dt> |
53 |
<dd>Pipe name.<br> |
54 |
Connects to a named pipe <pipe name> on the <server>. <br> |
55 |
Connects to local named pipe by specifying \\.\pipe\<pipe name>. |
56 |
</dd> |
57 |
|
58 |
<dt id="b">/B</dt> |
59 |
<dd>Telnet binary option.</dd> |
60 |
|
61 |
<dt id="baud">/BAUD=<speed></dt> |
62 |
<dd> |
63 |
speed of serial port. Same as the <a href="#speed">/SPEED=</a> option. |
64 |
Actually, the serial port driver may not reflect your speed. |
65 |
</dd> |
66 |
|
67 |
<dt id="c">/C=<serial port#></dt> |
68 |
<dd>Serial port |
69 |
<ul> |
70 |
<li><span class="syntax">/C=1</span> COM1</li> |
71 |
<li><span class="syntax">/C=2</span> COM2</li> |
72 |
<li><span class="syntax">/C=3</span> COM3</li> |
73 |
<li>:</li> |
74 |
<li><span class="syntax">/C=256</span> COM256</li> |
75 |
</ul> |
76 |
By default, maximum serial port number is 256. It is configurable in <a href="../setup/teraterm-com.html#maxport">MaxComPort</a> setting. |
77 |
</dd> |
78 |
|
79 |
<dt id="cdatabit">/CDATABIT=<value></dt> |
80 |
<dd>Data bit of serial port |
81 |
<ul> |
82 |
<li><span class="syntax">/CDATABIT=7</span> 7bit</li> |
83 |
<li><span class="syntax">/CDATABIT=8</span> 8bit</li> |
84 |
</ul> |
85 |
</dd> |
86 |
|
87 |
<dt id="cparity">/CPARITY=<value></dt> |
88 |
<dd>Parity of serial port |
89 |
<ul> |
90 |
<li><span class="syntax">/CPARITY=none</span> none</li> |
91 |
<li><span class="syntax">/CPARITY=odd</span> odd</li> |
92 |
<li><span class="syntax">/CPARITY=even</span> even</li> |
93 |
<li><span class="syntax">/CPARITY=mark</span> mark</li> |
94 |
<li><span class="syntax">/CPARITY=space</span> space</li> |
95 |
</ul> |
96 |
</dd> |
97 |
|
98 |
<dt id="cstopbit">/CSTOPBIT=<value></dt> |
99 |
<dd>Stop bit of serial port |
100 |
<ul> |
101 |
<li><span class="syntax">/CSTOPBIT=1</span> 1bit</li> |
102 |
<li><span class="syntax">/CSTOPBIT=1.5</span> 1.5bit</li> |
103 |
<li><span class="syntax">/CSTOPBIT=2</span> 2bit</li> |
104 |
</ul> |
105 |
</dd> |
106 |
|
107 |
<dt id="cflowctrl">/CFLOWCTRL=<value></dt> |
108 |
<dd>Flow control of serial port |
109 |
<ul> |
110 |
<li><span class="syntax">/CFLOWCTRL=x</span> Xon/Xoff</li> |
111 |
<li><span class="syntax">/CFLOWCTRL=hard</span> RTS/CTS</li> |
112 |
<li><span class="syntax">/CFLOWCTRL=rtscts</span> RTS/CTS</li> |
113 |
<li><span class="syntax">/CFLOWCTRL=none</span> none</li> |
114 |
<li><span class="syntax">/CFLOWCTRL=dsrdtr</span> DSR/DTR</li> |
115 |
</ul> |
116 |
</dd> |
117 |
|
118 |
<dt id="cdelayperchar">/CDELAYPERCHAR=<value></dt> |
119 |
<dd>Transmission delay time per character of serial port(msec) |
120 |
<ul> |
121 |
<li><span class="syntax">/CDELAYPERCHAR=n</span> n millisecond</li> |
122 |
</ul> |
123 |
</dd> |
124 |
|
125 |
<dt id="cdelayperline">/CDELAYPERLINE=<value></dt> |
126 |
<dd>Transmission delay time per line of serial port(msec) |
127 |
<ul> |
128 |
<li><span class="syntax">/CDELAYPERLINE=n</span> nmillisecond</li> |
129 |
</ul> |
130 |
</dd> |
131 |
|
132 |
<!-- |
133 |
<dt id="duplicate">/DUPLICATE</dt> |
134 |
<dd>Internal use(must not specify this option)</dd> |
135 |
--> |
136 |
|
137 |
<dt id="ds">/DS</dt> |
138 |
<dd>Disable displaying the "New connection" dialog on startup</dd> |
139 |
|
140 |
<dt id="e">/E</dt> |
141 |
<dd>Disable TCPLocalEcho and TCPCRSend option</dd> |
142 |
|
143 |
<dt id="es">/ES</dt> |
144 |
<dd>Enable displaying the "<a href="../menu/file-new.html">New connection</a>" dialog on startup<br> |
145 |
When the port type is TCP/IP, "New connection" dialog is shown basically. |
146 |
However, the dialog can be not shown when <a href="../setup/teraterm-ini.html#HostDialogOnStartup">HostDialogOnStartup</a> is off. |
147 |
The /ES option can be forced to show the "New connection" dialog regardless of the setting. <br> |
148 |
When the port type is Serial, the "New connection" dialog does not be shown. Also, the /ES option can not be effected. |
149 |
</dd> |
150 |
|
151 |
<dt id="f">/F=<setup file></dt> |
152 |
<dd>Setup file<br> |
153 |
<span class="syntax">/F=TERATERM.INI</span> (default)<br> |
154 |
If this value is not a full path, it is understood as a relative path from %APPDATA%\teraterm5\.</dd> |
155 |
|
156 |
<dt id="fd">/FD=<file transfer directory></dt> |
157 |
<dd>File transfer directory</dd> |
158 |
|
159 |
<dt id="h">/H</dt> |
160 |
<dd>Hide title bar.</dd> |
161 |
|
162 |
<dt id="i">/I</dt> |
163 |
<dd>Iconify Tera Term window.<br> |
164 |
NOTICE: This mode can also be used with Windows task scheduler when a user is not logged in. |
165 |
</dd> |
166 |
|
167 |
<dt id="k">/K=<keyboard setup file></dt> |
168 |
<dd>Keyboard setup file<br> |
169 |
<span class="syntax">/K=KEYBOARD.CNF</span> (default)<br> |
170 |
If this value is not a full path, it is understood as a relative path from %APPDATA%\teraterm5\.</dd> |
171 |
|
172 |
<dt id="kr">/KR=<kanji code (receive)></dt> |
173 |
<dd>Note: Japanese, Korean and UTF-8 mode only |
174 |
<ul> |
175 |
<li><span class="syntax">/KR=SJIS</span></li> |
176 |
<li><span class="syntax">/KR=EUC</span></li> |
177 |
<li><span class="syntax">/KR=JIS</span></li> |
178 |
<li><span class="syntax">/KR=UTF8</span> UTF-8(Normalization Form C: Windows, Linux)</li> |
179 |
<li><span class="syntax">/KR=UTF8m</span> UTF-8(Normalization Form D: Mac OS X)</li> |
180 |
<li><span class="syntax">/KR=KS5601</span> for Korean mode</li> |
181 |
</ul></dd> |
182 |
|
183 |
<dt id="kt">/KT=<kanji code (transmit)></dt> |
184 |
<dd>Note: Japanese and Korean mode only |
185 |
<ul> |
186 |
<li><span class="syntax">/KT=SJIS</span></li> |
187 |
<li><span class="syntax">/KT=EUC</span></li> |
188 |
<li><span class="syntax">/KT=JIS</span></li> |
189 |
<li><span class="syntax">/KT=UTF8</span></li> |
190 |
<li><span class="syntax">/KT=KS5601</span> for Korean mode</li> |
191 |
</ul></dd> |
192 |
|
193 |
<dt id="l">/L=<log file></dt> |
194 |
<dd>Start Tera Term with logging.<br /> |
195 |
File name can include <a href="../menu/setup-additional-log.html#LogFileNameFormat">formats of Tera Term and strftime</a>.<br /> |
196 |
If this value is not a full path, file name is <a href="../menu/setup-additional-log.html#LogFullpath">converted to fullpath</a> before open.</dd> |
197 |
|
198 |
<dt id="la">/LA=<language></dt> |
199 |
<dd>Language mode. |
200 |
<ul> |
201 |
<li><span class="syntax">/LA=E</span> English</li> |
202 |
<li><span class="syntax">/LA=J</span> Japanese</li> |
203 |
<li><span class="syntax">/LA=K</span> Korean</li> |
204 |
<li><span class="syntax">/LA=R</span> Russian</li> |
205 |
<li><span class="syntax">/LA=U</span> UTF-8</li> |
206 |
</ul></dd> |
207 |
|
208 |
<dt id="m">/M=<macro file></dt> |
209 |
<dd>Start Tera Term with macro.<br> |
210 |
If this value is not a full path, it is understood as a relative path from %APPDATA%\teraterm5\.</dd> |
211 |
|
212 |
<dt id="mn">/MN=<multicastname></dt> |
213 |
<dd>Multicast name for <a href="../macro/command/sendmulticast.html">sendmulticast</a> macro command.</dd> |
214 |
|
215 |
<dt id="nolog">/NOLOG</dt> |
216 |
<dd>Start Tera Term without logging.</dd> |
217 |
|
218 |
<dt id="osc52">/OSC52=<operations to permit></dt> |
219 |
<dd> |
220 |
operations to permit for clipboard access from remote host. |
221 |
<ul> |
222 |
<li><span class="syntax">/OCS52=off</span> deny read and write access.</li> |
223 |
<li><span class="syntax">/OCS52=read</span> permits read access only</li> |
224 |
<li><span class="syntax">/OCS52=write</span> permits write access only</li> |
225 |
<li><span class="syntax">/OCS52=readwrite</span> permits read and write access</li> |
226 |
</ul> |
227 |
</dd> |
228 |
|
229 |
<dt id="p">/P=<TCP port#></dt> |
230 |
<dd>TCP port number</dd> |
231 |
|
232 |
<dt id="r">/R=<replay file></dt> |
233 |
<dd>Replay file</dd> |
234 |
|
235 |
<dt id="speed">/SPEED=<speed></dt> |
236 |
<dd> |
237 |
speed of serial port. Same as the <a href="#baud">/BAUD=</a> option. |
238 |
Actually, the serial port driver may not reflect your speed. |
239 |
</dd> |
240 |
|
241 |
<dt id="t">/T=<telnet flag></dt> |
242 |
<dd><ul> |
243 |
<li><span class="syntax">/T=1</span> Enable telnet</li> |
244 |
<li><span class="syntax">/T=0</span> Disable telnet</li> |
245 |
</ul></dd> |
246 |
|
247 |
<dt id="tekicon">/TEKICON=<icon name></dt> |
248 |
<dd>TEK window icon.<br> |
249 |
Could be specified the same value of <a href="../setup/teraterm-win.html#WindowIcon">TEKIcon of setup file</a>.</dd> |
250 |
|
251 |
<dt id="theme">/THEME=<theme file></dt> |
252 |
<dd>Theme file<br> |
253 |
If this value is not a full path, it is understood as a relative path from %APPDATA%\teraterm5\.</dd> |
254 |
|
255 |
<dt id="timeout">/TIMEOUT=<connecting timeout value></dt> |
256 |
<dd>Could be specified per seconds.</dd> |
257 |
|
258 |
<dt id="v">/V</dt> |
259 |
<dd>Start Tera Term in hidden (invisible) state.</dd> |
260 |
|
261 |
<dt id="vticon">/VTICON=<icon name></dt> |
262 |
<dd>VT window icon.<br> |
263 |
Could be specified the same value of <a href="../setup/teraterm-win.html#WindowIcon">VTIcon of setup file</a>.</dd> |
264 |
|
265 |
<dt id="w">/W=<window title></dt> |
266 |
<dd>Window title</dd> |
267 |
|
268 |
<dt id="waitcom">/WAITCOM</dt> |
269 |
<dd>When serial port is specified with with /C= option and the port does not exist, Tera Term will wait for port connection.</dd> |
270 |
|
271 |
<dt id="x">/X=<window position (x)></dt> |
272 |
<dd>Windows position (horizontal)</dd> |
273 |
|
274 |
<dt id="y">/Y=<window position (y)></dt> |
275 |
<dd>Windows position (vertical)</dd> |
276 |
|
277 |
<dt id="pipe">/PIPE</dt> |
278 |
<dd>Connects to a named pipe. The host name(pipe name) is ccomplemented by these rules: |
279 |
<ul> |
280 |
<li>If the host name begins with a \, the name is not changed.</li> |
281 |
<li>If the host name does not include a \, the \\.\pipe\ is added at the beginning.</li> |
282 |
<li>If the host name includes a \ anywhere but first, before that is treated as server name and after that is treated as pipe name. </li> |
283 |
</ul> |
284 |
</dd> |
285 |
|
286 |
<dt id="autowinclose">/AUTOWINCLOSE=<flag></dt> |
287 |
<dd>AutoWinClose |
288 |
<ul> |
289 |
<li><span class="syntax">/AUTOWINCLOSE=on</span> Automatically close the window on disconnection.</li> |
290 |
<li><span class="syntax">/AUTOWINCLOSE=off</span> Do not close the window on disconnection.</li> |
291 |
</ul></dd> |
292 |
|
293 |
<dt id="comment">;<comment></dt> |
294 |
<dd>Comment. Should be last in the command line.</dd> |
295 |
</dl> |
296 |
|
297 |
|
298 |
<h2 id="example">Examples</h2> |
299 |
|
300 |
<pre> |
301 |
TTERMPRO |
302 |
TTERMPRO myhost.example.com |
303 |
TTERMPRO myhost.example.com:23 |
304 |
TTERMPRO myhost.example.com 23 |
305 |
TTERMPRO 192.0.2.1 |
306 |
TTERMPRO myhost.example.com /T=0 /P=7 |
307 |
TTERMPRO \\.\pipe\vmware-serial-port |
308 |
TTERMPRO /C=1 |
309 |
TTERMPRO /F=TELNET.INI |
310 |
TTERMPRO foohost.example.org /F=FOOHOST.INI |
311 |
TTERMPRO /C=2 /SPEED=9600 /F=MYSETUP.INI |
312 |
TTERMPRO /K=MYKEY.CNF /W="My host" |
313 |
TTERMPRO /R=README.TXT ; replay a file |
314 |
TTERMPRO myhost /B /X=100 /Y=50 |
315 |
TTERMPRO /PIPE pipename ; same as \\.\pipe\pipename |
316 |
</pre> |
317 |
|
318 |
|
319 |
<h2 id="default">Default values</h2> |
320 |
|
321 |
<p> |
322 |
Following default values are stored in the Tera Term setup file: |
323 |
</p> |
324 |
|
325 |
<pre> |
326 |
<TCP port#> |
327 |
/B |
328 |
<speed> |
329 |
<serial port#> |
330 |
<file transfer directory> |
331 |
/H |
332 |
<kanji code (receive)> |
333 |
<kanji code (transmit)> |
334 |
<language> |
335 |
<macro file> |
336 |
<telnet flag> |
337 |
<icon name> |
338 |
<window title> |
339 |
<window pos (x)> |
340 |
<window pos (y)> |
341 |
</pre> |
342 |
|
343 |
|
344 |
<h2 id="notes">Note</h2> |
345 |
|
346 |
<p id="note1"> |
347 |
[1] Only if <telnet flag> is 1 (on) and <TCP port#> is 23, Tera Term starts spontaneously sending telnet commands to the host for the option negotiation when the TCP/IP connection is established. In any cases, Tera Term can respond to telnet commands sent by the host. |
348 |
</p> |
349 |
|
350 |
<p id="note2"> |
351 |
[2] If the parameter value can include the space character and semicolon, a user should put the value in quotations by using `"' character.<br /> |
352 |
If the value includes the `"' character, the user should write the `"' character two times.(version 4.63 or later) |
353 |
</p> |
354 |
|
355 |
<pre> |
356 |
/F="C:\Document and Settings\user\My Documents\teraterm\server1.INI" |
357 |
/W="Tera Term" |
358 |
/W="""Tera Term""" |
359 |
/W="Tera;Term" |
360 |
</pre> |
361 |
|
362 |
<p id="note3"> |
363 |
[3] If portable.ini exists in the same folder of ttermpro.exe, ttermpro works as portable version<br /> |
364 |
In portable version, the configuration file folder is the same folder of ttermpro.exe. |
365 |
|
366 |
<h2 id="refs">See also</h2> |
367 |
|
368 |
<p> |
369 |
<a href="../usage/tips/not_port23.html">Telnet port number / Terminal setup for non-telnet connection</a> |
370 |
</p> |
371 |
|
372 |
|
373 |
</body> |
374 |
</html> |