I had Cygwin and its X-Windows installed on my Windows 10 laptop. On all of my Windows computers (Acer, EliteBook, some Dell brand, and others), the Windows 10 and X-Windows clipboard buffers were common (or somehow made to behave as if they were common). Here is a description of the two buffers.
I recently had to duplicate this Cygwin setup. My workhorse EliteBook (840 G6) started to show keyboard circuit problems, so I was lucky enough to get a replacement EliteBook 650 G9. They differ in physical form factor, but software-wise, they are more similar than any other two laptops that I've ever used. It was simple to replicate the Cygwin environment using this package list migration procedure, although the package versions themselves would be the most recent available (presumably!).
Since the computers are very similar, as are the Cygwin packages, I
would expect very similar behaviour. However, when I use Cygwin to
put text into the copy/paste buffer, it cannot be pasted in a Cygwin
xterm using Shift+Ins
. Instead, I need to issue a
middle-mouse-button click (which I emulate in Windows 10 with a
3-finger tap).
While this does not work on the new EliteBook 650 G9, it did work on
my various past laptops, including the EliteBook 640 G6. Even on the
new EliteBook 650 G9, it Shift-Ins
does work on a Cygwin mintty (the
default terminal that is launched for Bash). How can I get
Shift+Ins
to paste into xterm?
Troubleshooting
Shift+Ins
doesn't paste into an xterm in the new EliteBook 650 G9
regardless of how I put text into the Primary or Clipboard buffers,
including the following:
- Highlight in a Windows 10 window and press Ctrl+C
- Highlight in a Cygwin mintty terminal
- Highlight in a Cygwin mintty terminal and press <Return> (which copies from a CMD terminal window)
- Using Gvim to yank into register
*
(Primary selection buffer) - Using Gvim to yank into register
+
(Clipboard buffer) - In a CMD terminal window, highlight text and press
- In an xterm, select some text
In all of the above, the emulated middle-mouse-button click does
paste into the xterm with the exception of Gvim yanking into
register +
; the latter doesn't seem to update the Primary selection
buffer. All of the above also seems to paste into the Cygwin mintty
terminal using Shift+Ins
, and into Windows notepad using Shift+Ins
and Ctrl+V
.
I confirmed proper functionality of the Shift+Ins
not just in
Cygwin's mintty terminal, but also in Windows's Notepad. It pastes
text placed into Cygwins Primary selection and Clipboard buffers.
This Cygwin X-Windows page shows that the two buffers are supposed to be integrated by default. I confirmed that the checkbox for Clipboard may use PRIMARY selection is enabled. My ~/.Xresources files is identical on both EliteBooks, and I have nothing in there pertaining to clipboards (just fonts and colour).