delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/09/09:33:46

X-Spam-Check-By: sourceware.org
Message-ID: <45F170C2.10107@byu.net>
Date: Fri, 09 Mar 2007 07:35:46 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, vince AT gawain DOT elte DOT hu
Subject: Re: copy-paste
References: <9389421 DOT post AT talk DOT nabble DOT com>
In-Reply-To: <9389421.post@talk.nabble.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

-----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             ebb9 AT byu DOT net
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019