|
FAQ
Frequently Asked Questions
How do I make a shortcut to run PuTTYcyg?Use this command line (Target:) C:\path\to\putty.exe -cygterm - or use a saved session, e.g.: C:\path\to\putty.exe -load Local Optional: set the working directory (Start in:) to your Cygwin installation's /bin directory: e.g.: C:\Cygwin-1.7\bin As of PuTTYcyg version 20090508, setting the working directory will allow you to turn off the Autodetect Cygwin Installation and use multiple Cygwin installations on your system. The PuTTY documentation has more information about how to use sessions. I have a non-Cygwin program which doesn't work under certain circumstances. What's wrong?PuTTYcyg is not a Windows console replacement program, it is a local terminal emulator for Cygwin programs and therefore is only meant to work with Cygwin programs. Some Windows console programs will work most of the time. However, since PuTTYcyg does not provide a Windows console device, these console programs will break as soon as they try to access it (for example by trying to change the ENABLE_ECHO_INPUT setting via the SetConsoleMode() API function). PuTTYcyg provides a POSIX pty in the Cygwin environment; it does not provide a Windows console device. There are some excellent technical documents which explain why (non-Cygwin) Windows console programs don't work well in the absence of a Windows console device:
I recently upgraded Cygwin, and now PuTTYcyg no longer works.The problem may be multiple copies of cygwin1.dll. See the Cygwin FAQ. Troubleshooting: "Invalid Port number"If the session registry has an old configuration, PuTTYcyg may not start properly. Changing the PortNumber setting in HKEY_CURRENT_USER\SOFTWARE\SimonTatham\PuTTY\Sessions\_SESSION_ to 1 should solve the problem. Other questionsFor questions specific to PuTTYcyg, please feel free to create an issue. Please consult the Cygwin FAQ or the PuTTY FAQ for questions not directly related to PuTTYcyg. |
Sign in to add a comment
Is there a way to get colors to work in Puttycyg?
Color support is part of PuTTY -- please see the PuTTY documentation: http://www.chiark.greenend.org.uk/~sgtatham/putty/
If you find something that works in PuTTY but does not work in PuTTYcyg, please report it here: http://code.google.com/p/puttycyg/issues/entry
@jhalterman
run puTTYcyg with the command line option: "-cygterm bash --login -i"
Ex: putty.exe -cygterm bash --login -i
Colors should work then.
Did you consider making this compatible with SFU/SUA as well? (cf: http://www.suacommunity.com/ )
is it possible to make PuTTYcyg running msys's shell instead of cygwin? msys's shell has not the cygwin dll dependency.
another question ( no, it's a curiosity ), do you think PuTTYcyg's code can help KDE4's Konsole port into mswindows? ( I do not understand well about that but I think the missing pty functionality in mswindows is the current problem of porting Konsole )
The Cygterm backend of PuTTYcyg cannot run msys, as it is not a Cygwin program.
I doubt that PuTTYcyg's code would help Konsole out much. But see the README file about pty's vs. the Windows console device.
thanks for the clarification.
Thanks for nice tool. I just faced the following problem, and solved it.It may be useful for others.
If you get the above error, copy the binary files puttytel.exe and cthelper.exe? to your {cygwin_install_directory}/bin directory. Then try to execute putty.exe. It will work.
medgar123, thanks again for the clarification :)
konsole has been ported: http://lists.kde.org/?l=konsole-devel&m=123429088509347&w=2 http://lists.kde.org/?t=123353687000001&r=1&w=2
thank you :)
I am trying to modify the "Command prompt here" powertoy to use puttycyg, which should be pretty straight forward, except I can't figure out how to pass in the working directory as an argument. Is this possible?
Ikbatizy,
I'm not sure if I understood it well but I think I have an Idea.
first, let me see if I understood: -- you want to right-click a folder to open it in puttyCyg command prompt.
then, my idea: -- writing a simple program that converts mswindows paths into cygwin's paths e.g.: "C:\foo\bar" into "/cygdrive/c/foo/bar/", then this program calls puttycyg passing the directory as a parameter -- adding an entry in the mswindows registry to add the context menu option which should call the program mentioned above.
there are mswindows registry procedures to do so: http://www.askvg.com/how-to-add-remove-entries-in-context-menus/
I hope it can help.
I've just found something that can help:
http://www.mindview.net/Etc/Cygwin/BashHere
The file /usr/local/bin/dchanger:
The registry command line:
For some reason it automagically knows which directory to change to. Don't ask me how.
Dear medgar123,
Kev
If you want to use windows console apps too (like ftp, telnet, etc) that do not work with putty(cyg) check this project too:
http://sourceforge.net/projects/console/