public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Sam Edge <sam.edge.cygwin@gmx.com>
To: cygwin@cygwin.com
Subject: Re: substitute for xclip?
Date: Wed, 19 Oct 2022 08:54:08 +0100	[thread overview]
Message-ID: <ef7a1d06-71a7-00ca-d947-d16276e8d0a7@gmx.com> (raw)
In-Reply-To: <8819f31f-3e53-001a-e16a-03ae500e2f70@gmx.com>

H again.

Or you can use:-

#!/bin/bash
shopt -s lastpipe
powershell -command Get-Clipboard | mapfile array_variable

for multiline.

--
Sam Edge

On 19/10/2022 08:44, Sam Edge wrote:
> Hi there.
>
> In the absence of a Cygwin-native utility, how about?
>
> x="$(powershell -command Get-Clipboard)"
>
> You can pipe to the Windows 'clip' utility to go the other way or use
> 'powershell -command Set-Clipboard'.
>
> But I agree, a Cygwin utility would be nice, unless there already is one?
>
> --
> Sam Edge
>
> On 19/10/2022 07:58, Ulli Horlacher wrote:
>> With Linux I am using xclip to read the X11 clipboard.
>> Is there a cygwin equivalent to read the Windows clipboard?
>>
>> My use case is:
>> The user copies file names to the clipboard and then starts a program
>> which processes these files.
>>
>>
>

  reply	other threads:[~2022-10-19  7:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-19  6:58 Ulli Horlacher
2022-10-19  7:44 ` Sam Edge
2022-10-19  7:54   ` Sam Edge [this message]
2022-10-19  9:01 ` Backwoods BC
2022-10-19 11:56   ` Sam Edge
2022-10-19 12:58   ` Ulli Horlacher
2022-10-19 22:52     ` Oliver Schoede
2022-10-20  7:27       ` Sam Edge
2022-10-20  8:12         ` Backwoods BC
2022-10-20  3:23   ` Thomas Wolff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ef7a1d06-71a7-00ca-d947-d16276e8d0a7@gmx.com \
    --to=sam.edge.cygwin@gmx.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).