My favorites | Sign in
Project Logo
                
Search
for
Updated Feb 10, 2009 by medgar123
Labels: Featured
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 questions

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


Comment by jhalterman, Jun 05, 2008

Is there a way to get colors to work in Puttycyg?

Comment by medgar123, Jun 26, 2008

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

Comment by ecarrara, Sep 16, 2008

@jhalterman

run puTTYcyg with the command line option: "-cygterm bash --login -i"

Ex: putty.exe -cygterm bash --login -i

Colors should work then.

Comment by benjamin.schallar, Oct 27, 2008

Did you consider making this compatible with SFU/SUA as well? (cf: http://www.suacommunity.com/ )

Comment by andriusmao, Dec 12, 2008

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 )

Comment by medgar123, Jan 21, 2009

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.

Comment by andriusmao, Jan 26, 2009

thanks for the clarification.

Comment by ramandv, Jan 29, 2009

Thanks for nice tool. I just faced the following problem, and solved it.It may be useful for others.

---------------------------
cthelper.exe - Entry Point Not Found
---------------------------
The procedure entry point _impure_ptr could not be located in the dynamic link library cygwin1.dll. 
---------------------------
OK   
---------------------------

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.

Comment by andriusmao, Feb 10, 2009

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 :)

Comment by lkbatizy, Feb 19, 2009

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?

Comment by andriusmao, Feb 27, 2009

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.

Comment by andriusmao, Feb 27, 2009

I've just found something that can help:

http://www.mindview.net/Etc/Cygwin/BashHere

Comment by netsharc, Apr 12, 2009

The file /usr/local/bin/dchanger:

#!/bin/bash
CHERE_INVOKING=true exec bash -rcfile /etc/profile

The registry command line:

C:\Cygwin\PuttyCyg\putty.exe -cygterm -load "Cygwin" /usr/local/bin/dchanger

For some reason it automagically knows which directory to change to. Don't ask me how.

Comment by kevin.k.woo, Jun 24, 2009

Dear medgar123,

Thanks for writing puttycyg - it's great!

Kev

Comment by LatinSuD, Sep 23, 2009

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/


Sign in to add a comment
Hosted by Google Code