Pharo and X11 primary selection (aka middle mouse button paste)
Posted by Pieter Nagel-3 on Jan 20, 2015; 1:54pm
URL: https://forum.world.st/Pharo-and-X11-primary-selection-aka-middle-mouse-button-paste-tp4800635.html
Our team is very frustrated with figuring out how copy & paste is supposed
to work in Pharo 3 under X11.
Maybe there's something we misunderstand, or can configure?
We can't copy and paste text directly from other X11 apps into Pharo. We
need to first paste the text into text editors like GEdit or XEmacs, and
then we can copy and paste the text from there into Pharo.
I think this has something to do with X11's complicated model of primary
vs. clipboard selection. The primary selection is typically created by
just highlighting some text, and then (by common convention) can be pasted
from by just pressing the middle mouse button. The clipboard selection is
typically created by explicitly using Copy or Cut commands.
Strange thing is, if we start with text in (for example) Google Chrome,
then neither type of selection can be pasted into Pharo. If we start with
text in (for example) GEdit, then both types of selection can be pasted
into Pharo.
We're using Unity under Ubuntu 12.04, if that makes a difference.
Advice?
Thanks.