I have a three button mouse. Within a shell (I use bash), on either OS X or linux, the selecting text and clicking the middle button copies the selection and pastes it at the cursor.

However, using Cygwin within a Command Prompt on Windows XP, I have to use the select text, enter, right button sequence to do the same thing. Is there a way to configure Cygwin to behave the same as OS X and Linux?

4 Answers
4

You should install and use rxvt instead of the Windows terminal (cmd.exe). rxvt can be installed by selecting it under Shells in the Cygwin installer and it automatically creates two shortcuts to Programs/Cygwin branch of the Start Menu (at least if you initially allowed shortcuts to be created), one for X and one without. So, you don't need to install X to use rxvt.

In rxvt you can use the middle button like you have used to straight away, without any further configurations. If you want to configure some aspect of rxvt you should refer to

/usr/share/doc/Cygwin/rxvt-<version>.README

which lists different possiple configuration options and some samples.

@akira - Thanks for suggesting mintty. I've just installed it and it is working very well. It's much simpler to configure than puttycyg. I also like having an rc configuration file rather than the configuration being hidden away in the registry. mintty will now be my default recommendation to people wanting a good Cygwin terminal. [I would have added this comment to your answer, but I don't have enough reputation. :-(]
–
ConvictSep 24 '09 at 2:52