I recently reinstalled cygwin on my windows 7 machine, and added the cygwin directory to my path so that it works seamlessly with the windows command line. Every time I execute a command, I get the following above the actual output:
"tty" option detected in CYGWIN environment variable.
CYGWIN=tty is no longer supported. Please remove it from your
CYGWIN environment variable and use a terminal emulator like mintty,
xterm, or rxvt.
How can I get rid of this so that I can use cygwin in my command line without the annoying header?
Best Answer
I had the same issue, but there was no setting for the
CYGWIN
environment variable in any script or in the computer properties (Control Panel).I then discovered that the
sshd
service had a setting for theCYGWIN
environment variable in the Windows registry under the following key:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\sshd\Parameters\Environment
By removing the
tty
option in the@CYGWIN
string, the deprecation warning no longer appears when executing commands.