# Delay of path-through printing

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:

    PassThruDelay=<delay in sec>

    Default:
    PassThruDelay=3

# Path-through printing directly to a port

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:

    PassThruPort=<port>

The <port> string specifies a port to which data is sent. The format of <port> 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.

    Example:
      PassThruPort=LPT1
      PassThruPort=COM2: 9600,n,8,1,x

    Default:
    PassThruPort=

For Russian mode, you should see also Russian code set of the printer font

# Ignore the printing control sequence

You can ignore the printing control sequence(MC: Media Copy) by editing the PrinterCtrlSequence line in the [Tera Term] section of the setup file like the following: The PassThruPort line is always ignored.

    PrinterCtrlSequence=on|off

    Example(Printing control sequence is ignored):
    PrinterCtrlSequence=off

    Default(Printing control sequence is enabled):
    PrinterCtrlSequence=on

# Disabling the form-feed in the path-through printing

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:

    PrnConvFF=on

Then, the FF character causes the carriage-return and line-feed instead of the form-feed.

Note: This option is ignored for the direct pass-through printing.

    Default:
    PrnConvFF=off

# Printer font

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:

1. Change the font for displaying text by using the [Setup] Font command and print text.
2. If you find a nice font for printing, save the current setup to the setup file by using the [Setup] Save setup command.
3. 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.
4. Restore the font for displaying text.

    Example:
    PrnFont=Terminal,0,13,1

    Default:
    PrnFont=

For Russian mode, you should see also Russian code set of the printer font

# Page margins

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:

    PrnMargin=<left>,<right>,<top>,<bottom>

These margins should be specified in unit of 1/100 inches.

    Default:
    PrnMargin=50,50,50,50

# Scaling factors for printing

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:

    VTPPI=<x(horizontal), y(vertical); pixels per inch)>    ; for the VT window
    TEKPPI=<x(horizontal), y(vertical); pixels per inch)>   ; for the TEK window

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.

    Example:
    VTPPI=300,300
    TEKPPI=300,300

    Default:
    VTPPI=0,0
    TEKPPI=0,0

# Russian code set of the printer font (Russian mode only)

When you specify a printer font or a printer device, 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:

    RussFont=<char set>

    where <char set> should be one of the following:
      Windows
      KOI8-R
      CP-866
      ISO-8859-5

    Default:
    RussPrint=Windows