www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/04/22/07:35:47

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <49EEF1AD.7020000@bonhard.uklinux.net>
References: <49EEF1AD DOT 7020000 AT bonhard DOT uklinux DOT net>
Date: Wed, 22 Apr 2009 12:35:21 +0100
Message-ID: <416096c60904220435s3ebaef49yb65356bb96e9cf0f@mail.gmail.com>
Subject: Re: Copying/Pasting in Cygwin
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Xterm supports an OSC sequence for accessing the clipboard/selection.
I don't know whether vim or emacs have support for this though. From
http://invisible-island.net/xterm/ctlseqs/ctlseqs.html:

OSC P s ; P t BEL
...
P s = 5 2 $B"*(B Manipulate Selection Data. These controls may be disabled
using the allowWindowOps resource. The parameter P t is parsed as

P c ; P d

The first, P c , may contain any character from the set c p s 0 1 2 3
4 5 6 7 . It is used to construct a list of selection parameters for
clipboard, primary, select, or cut buffers 0 through 8 respectively,
in the order given. If the parameter is empty, xterm uses s 0 , to
specify the configurable primary/clipboard selection and cut buffer 0.
The second parameter, P d , gives the selection data. Normally this is
a string encoded in base64. The data becomes the new selection, which
is then available for pasting by other applications.
If the second parameter is a ? , xterm replies to the host with the
selection data encoded using the same protocol.

2009/4/22 Fergus <fergus AT bonhard DOT uklinux DOT net>:
> Are you using X? If you are, then you could try including -clipboard as an
> option for XWin:
> e.g.
> run XWin -clipboard -nolisten local -multiwindow 2>nul &
> (or however you usually start X up). This will put text selected for
> copy-ing into the Windows clipboard.
> If you are not using X, then I am sorry, I do not know what to suggest.
> Fergus
>
>
> --
> 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/
>
>

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