delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/09/04:41:26

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
Message-ID: <001501c49649$03a3ec30$ba968890@firsttec>
From: "David Tombs" <tombs AT bigpond DOT net DOT au>
To: <cygwin AT cygwin DOT com>
Subject: How do I define a key binding for copy-to-clipboard?
Date: Thu, 9 Sep 2004 18:42:51 +1000
MIME-Version: 1.0
X-IsSubscribed: yes

Hello All,

I'm a Windows user trying to install and configure cygwin. Thus far I've
managed to install bash and, mostly, configure it to my preferences.
However, there is one thing missing. I want to use the clipboard to
transfer text to and from Windows, with the same key bindings, viz
Ctrl-C for copy and Ctrl-V for paste. (My left finger muscles are
hardwired to these keys and anyway, I hate using the mouse for this kind
of action.)

The cygwin FAQ describes a function, 'paste-from-clipboard', which
performs the paste operation and which can be bound to an individual key
within an initrc file. Searching a bit deeper, the readline docs tell me
a bit about the format of the initrc file and how to bind Ctrl and Meta
keys. So I put the following line into my personal .initrc file
  Control-v:paste-from-clipboard
and lo and behold, it works!

However I cannot find a definition of the converse 'copy-to-clipboard'
function anywhere. It surely exists, because pressing the 'Enter' key
(or right mouse) does just that.

So what do I have to do to bind this function operation to Ctrl-C? How
do I write into my .initrc
  Control-c:{whatever Enter does}


David Tombs




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