-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to ovince on 3/9/2007 12:04 AM: > hi All > > Is it posible to adjust Copy and Paste in Cygwin to Ctrl-c and Ctrl-v? I do > it in very unrobust way now (right-click, properties, mark; right-click, > properties, copy; right-click, properties, paste). It is very unpleasent.
If you use Window's terminal (cmd.com) to host bash, then you must use Window's notion of copy-n-paste (and their terminal is rather dumb at copy-n-past semantics, as you have noticed). If you use rxvt or xterm, you get Unix semantics, where by default, highlighting text copies it to the clipboard, and middle clicking pastes it to the terminal. Additionally, if you use bash as your cygwin shell, there is a cygwin-only hook in readline (actually maintained upstream! as a cygwin-only patch) where you can use .inputrc to rebind Ctrl-V to paste-from-clipboard, rather than the Unix default of quoted-insert. At which point, ctrl-V will work for pasting into your terminal, regardless of whether you use cmd.com or rxvt. It is also possible to rebind Ctrl-C, but that makes less sense, as it is not easy to highlight terminal text without the mouse (and once you've highlighted it with the mouse, it is already easy to copy without requiring an additional keystroke). - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] volunteer cygwin readline maintainer -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF8XDC84KuGfSFAYARAtTjAKCx0YIkpKl2LtJPRbFwuoqwmD5urgCgnob8 qi3khDb+Slmkg2WzwI2JiLE= =w3cx -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/