# Tera Term command line

    TTERMPRO [ <host>[[:]<TCP port#>] | telnet://<host>[:<TCP port#>][/] ]
             [/B] [/BAUD=<baud rate>] [/C=<serial port#>] [/DS] [/E] [/ES]
             [/F=<setup file>] [/FD=<file transfer directory>]
             [/H] [/I] [/K=<keyboard setup file>]
             [/KR=<kanji code (receive)>] [/KT=<kanji code (transmit)>]
             [/L=<log file>] [/LA=<language>] [/M=<macro file>] [/NOLOG]
             [/P=<TCP port#>] [/R=<replay file>] [/T=<telnet flag>]
             [/TEKICON=<icon name>] [/TIMEOUT=<connecting timeout value>]
             [/V] [/VTICON=<icon name>] [/W="<window title>"]
             [/X=<window pos (x)] [/Y=<window pos (y)]
             [/NAMEDPIPE]
             [/AUTOWINCLOSE=<flag>]
             [;<comment>]

## Options

<host>
  Host name or IP address or Named pipe.
<host>:<TCP port#>
  <host> with a TCP port number.
  ":" is placed between <host> and <TCP port#>.
<host> <TCP port#>
  <host> with a TCP port number.
  Space character(s) between <host> and <TCP port#>.
  Number just after <host> is interpreted as a port number.
telnet://<host>[:<TCP port#>][/]
  URL style - for telnet handler
  TCP port number and "/" at the end are optional.
  If TCP port number is omitted, use 23. (TCPPort setting in setup file is ignored.)
/B
  Telnet binary option.
/BAUD=<baud rate>
  baud rate of serial port. If the baud rate not supported by Tera Term is specified, this option is ignored.
/C=<serial port#>
  Serial port
  - /C=1 COM1
  - /C=2 COM2
  - /C=3 COM3
  - :
  - /C=256 COM256
/DUPLICATE
  Internal use(must not specify this option)
/DS
  Disable displaying the "New connection" dialog on startup
/E
  Disable TCPLocalEcho and TCPCRSend option
/ES
  Enable displaying the "New connection" dialog on startup
/F=<setup file>
  Setup file [2]
  /F=TERATERM.INI (default)
  If this value is not a full path, it is understood as a relative path from ttermpro.exe.
/FD=<file transfer directory>
  File transfer directory [2]
/H
  Hide title bar.
/I
  Start Tera Term in iconized state.
/K=<keyboard setup file>
  Keyboard setup file [2]
  /K=KEYBOARD.CNF (default)
  If this value is not a full path, it is understood as a relative path from ttermpro.exe.
/KR=<kanji code (receive)>
  Note: Japanese, Korean and UTF-8 mode only
  - /KR=SJIS
  - /KR=EUC
  - /KR=JIS
  - /KR=UTF8 UTF-8(Normalization Form C: Windows, Linux)
  - /KR=UTF8m UTF-8(Normalization Form D: Mac OS X)
  - /KR=KS5601 for Korean mode
/KT=<kanji code (transmit)>
  Note: Japanese and Korean mode only
  - /KT=SJIS
  - /KT=EUC
  - /KT=JIS
  - /KT=UTF8
  - /KT=KS5601 for Korean mode
/L=<log file>
  Start Tera Term with logging. [2]
/LA=<language>
  Language mode.
  - /LA=E English
  - /LA=J Japanese
  - /LA=K Korean
  - /LA=R Russian
  - /LA=U UTF-8
/M=<macro file>
  Start Tera Term with macro. [2]
  If this value is not a full path, it is understood as a relative path from ttermpro.exe.
/MN=<multicastname>
  Multicast name for sendmulticast macro command. [2]
/NOLOG
  Start Tera Term without logging.
/P=<TCP port#>
  TCP port number
/R=<replay file>
  Replay file [2]
/T=<telnet flag>
  - /T=1 Enable telnet
  - /T=0 Disable telnet
/TEKICON=<icon name>
  TEK window icon. Could be specify the same value of TEKIcon of setup file.
/TIMEOUT=<connecting timeout value>
  Could be specified per seconds.
/V
  Start Tera Term in hidden (invisible) state.
/VTICON=<icon name>
  VT window icon. Could be specify the same value of VTIcon of setup file.
/W=<window title>
  Window title [2]
  A user should put the window title in quotations by using `"' character two times to include the character.
/X=<window position (x)>
  Windows position (horizontal)
/Y=<window position (y)>
  Windows position (vertical)
/NAMEDPIPE
  Named pipe(\\<ServerName>\pipe\<PipeName>)
/AUTOWINCLOSE=<flag>
  AutoWinClose
  - /AUTOWINCLOSE=on Automatically close the window on disconnection.
  - /AUTOWINCLOSE=off Do not close the window on disconnection.
;<comment>
  Comment. Should be last in the command line.

## Examples

    TTERMPRO
    TTERMPRO myhost.mydomain
    TTERMPRO myhost.mydomain:23
    TTERMPRO myhost.mydomain 23
    TTERMPRO 111.111.11.11
    TTERMPRO myhost.mydomain /T=0 /P=7
    TTERMPRO /C=1
    TTERMPRO /F=TELNET.INI
    TTERMPRO foohost.foodomain /F=FOOHOST.INI
    TTERMPRO /C=2 /BAUD=9600 /F=MYSETUP.INI
    TTERMPRO /K=MYKEY.CNF /W="My host"
    TTERMPRO /R=README.TXT ; replay a file
    TTERMPRO myhost /B /X=100 /Y=50
    TTERMPRO /NAMEDPIPE \\.\pipe\vmware-serial-port

## Default values

Following default values are stored in the Tera Term setup file:

    <TCP port#>
    /B
    <baud rate>
    <serial port#>
    <file transfer directory>
    /H
    <kanji code (receive)>
    <kanji code (transmit)>
    <language>
    <macro file>
    <telnet flag>
    <icon name>
    <window title>
    <window pos (x)>
    <window pos (y)>

## Note

[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.

[2] Quote the multicast name when the name includes the space and `"' character. And then, a user should put the window title in quotations by using `"' character two times to include the character.

    /F="C:\Document and Settings\user\My Documents\teraterm\server1.INI"
    /W="Tera Term"
    /W="""Tera Term"""

## See also

Telnet port number / Terminal setup for non-telnet connection