Re: substitute for xclip?

2022-10-20 Thread Backwoods BC
On Thu, Oct 20, 2022 at 12:27 AM Sam Edge wrote: > On 19/10/2022 23:52, Oliver Schoede wrote: > > Hi! > > > > On Wed, 19 Oct 2022 14:58:42 +0200 > > Ulli Horlacher wrote: > >> https://fex.rus.uni-stuttgart.de/fop/jFZ6T7wI/X-20221019141237.png > >> > >> I have selected [copy] in the file browser,

Re: substitute for xclip?

2022-10-20 Thread Sam Edge
On 19/10/2022 23:52, Oliver Schoede wrote: Hi! On Wed, 19 Oct 2022 14:58:42 +0200 Ulli Horlacher wrote: https://fex.rus.uni-stuttgart.de/fop/jFZ6T7wI/X-20221019141237.png I have selected [copy] in the file browser, but /dev/clipboard is empty. Also getclip gives me no output. It looks to

Re: substitute for xclip?

2022-10-19 Thread Thomas Wolff
Am 19.10.2022 um 11:01 schrieb Backwoods BC: On Tue, Oct 18, 2022 at 11:59 PM Ulli Horlacher wrote: With Linux I am using xclip to read the X11 clipboard. Is there a cygwin equivalent to read the Windows clipboard? There are 2 ways to access the clipboard: 1. The commands 'getclip' and

Re: substitute for xclip?

2022-10-19 Thread Oliver Schoede
Hi! On Wed, 19 Oct 2022 14:58:42 +0200 Ulli Horlacher wrote: > >https://fex.rus.uni-stuttgart.de/fop/jFZ6T7wI/X-20221019141237.png > >I have selected [copy] in the file browser, but /dev/clipboard is >empty. Also getclip gives me no output. > It looks to me like you copied the file, not the

Re: substitute for xclip?

2022-10-19 Thread Ulli Horlacher
On Wed 2022-10-19 (02:01), Backwoods BC wrote: > On Tue, Oct 18, 2022 at 11:59 PM Ulli Horlacher > wrote: > > > > > With Linux I am using xclip to read the X11 clipboard. > > Is there a cygwin equivalent to read the Windows clipboard? > > There are 2 ways to access the clipboard: > 1. The

Re: substitute for xclip?

2022-10-19 Thread Sam Edge
On 19/10/2022 10:01, Backwoods BC wrote: > On Tue, Oct 18, 2022 at 11:59 PM Ulli Horlacher > wrote: >> >> With Linux I am using xclip to read the X11 clipboard. >> Is there a cygwin equivalent to read the Windows clipboard? > > There are 2 ways to access the clipboard: > 1. The commands

Re: substitute for xclip?

2022-10-19 Thread Backwoods BC
On Tue, Oct 18, 2022 at 11:59 PM Ulli Horlacher wrote: > > With Linux I am using xclip to read the X11 clipboard. > Is there a cygwin equivalent to read the Windows clipboard? There are 2 ways to access the clipboard: 1. The commands 'getclip' and 'putclip' 2. Redirection to/from /dev/clipboard

Re: substitute for xclip?

2022-10-19 Thread Sam Edge
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

Re: substitute for xclip?

2022-10-19 Thread Sam Edge
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

substitute for xclip?

2022-10-19 Thread Ulli Horlacher
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. -- Ullrich Horlacher Server und Virtualisierung