delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/23/16:40:34

X-Spam-Check-By: sourceware.org
Message-ID: <44ECBD3A.4040406@byu.net>
Date: Wed, 23 Aug 2006 14:40:26 -0600
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.5) Gecko/20060719 Thunderbird/1.5.0.5 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, johnjsal AT gmail DOT com
Subject: Re: copying and pasting in the terminal window?
References: <44ECA731 DOT 9090004 AT NOSPAMgmail DOT com> <44ECB141 DOT 8060801 AT kset DOT org> <44ECB4E7 DOT 8050205 AT NOSPAMgmail DOT com>
In-Reply-To: <44ECB4E7.8050205@NOSPAMgmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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 John Salerno on 8/23/2006 2:04 PM:
> 
> Thanks guys! I can now highlight and use CTRL+C, but right-clicking
> doesn't work. But that's ok. Pasting, however, doesn't allow CTRL+V, but
> simply right-clicking will paste! Strange behavior! :)

By default, readline (the command parsing engine of bash) gives Ctrl-V its
traditional Unix semantics of treating the next character typed literally,
rather than as a terminal command.  To get it to mean the Windows
semantics of pasting, instead, you will need to do 'stty lnext undef' to
cripple the lnext terminal feature so readline doesn't try to map Ctrl-V
to quoted-insert, then use ~/.inputrc or bash's bind builtin to set ctrl-v
to paste-from-clipboard.

Also, Ctrl-C typically has its default Unix semantics of interrupt, rather
than the Windows semantics of copy region to clipboard.

Or you can just use rxvt (I do), and have traditional Unix semantics of
everything highlighted is automatically on the clipboard with no further
keypresses, and pressing the middle mouse button pastes from the clipboard.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9 AT byu DOT net
volunteer cygwin bash maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE7L0584KuGfSFAYARAr+KAJ0f/XD5xB2CpeYsNiMroS3n4LVrowCg0OE6
oQ1sUtrpUmnWlcnvRipRKvY=
=Codg
-----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