# Cygwin connection

Tera Term can connect to local Cygwin environment.
Cygwin is a Linux-like environment for Windows.
Cygwin is open source software.

[NOTE] Cygwin 1.5.x doesn't seem support Windows 7. Please use Cygwin 1.7.x on Windows 7.

This package makes it possible to connect local Cygwin by using built in Cygterm.
Select "Cygwin connection" from "File" menu or press "Alt + G " to connect to Cygwin.
Prior connecting to Cygwin, Cygwin installation path has to be entered into Tera Term ini file.
The format is "drive-letter:\directory".

    ----------------------------
    ; Cygwin install path
    CygwinDirectory = c:\cygwin
    ; 64bit Cygwin
    ; CygwinDirectory=c:\cygwin64
    ----------------------------

[NOTE]
If cygterm fails to start you might need to download its source and recompile it.
Latest source code is included as cygterm+.tar.gz.

[NOTE] About 64bit Cygwin
Your cygterm needs to rebuild on the 64bit Cygwin environment. The re-compiling requires the mingw64-x86_64-gcc-core package into your cygwin environment.

Be careful not to save [Setup] [Save setup] in the situation that it was started by cygterm.exe.
Otherwise telnet port number of TCP/IP is saved but 23 you will be confused by connection failure when you normally run Tera Term to do telnet. In that case it will be recovered by saving the setting with specifying TCP/IP Port# 23.

## Cygterm Here

When this option is selected on the Tera Term installer, the "Cygterm Here" context menu is added on the right-click and opened folder. A user can open the Cygwin connection on the selected folder.

Tera Term installer will configure the generic parameter, however the csh/tcsh may not check the CHERE_INVOKING. If indicated, please modify the /etc/csh.login file or modify the Cygterm Here registry in the following:

    before:
    "C:\Program Files\teraterm\cyglaunch.exe" -nocd -v CHERE_INVOKING=y -d "\"%L\""
    after:
    "C:\Program Files\teraterm\cyglaunch.exe" -nocd -nols -d "\"%L\""