From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!feeder.erje.net!195.197.54.118.MISMATCH!feeder2.news.elisa.fi!uutiset.elisa.fi!7564ea0f!not-for-mail From: Tero Koskinen Newsgroups: comp.lang.ada Subject: Re: Using the Clipboard in Linux Message-ID: <20091108215519.0a206ba2.tero.koskinen@iki.fi> References: X-Newsreader: Sylpheed 2.5.0 (GTK+ 2.14.7; i386-unknown-openbsd4.5) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Sun, 8 Nov 2009 21:55:19 +0200 NNTP-Posting-Host: 84.231.117.18 X-Complaints-To: newsmaster@saunalahti.com X-Trace: uutiset.elisa.fi 1257710121 84.231.117.18 (Sun, 08 Nov 2009 21:55:21 EET) NNTP-Posting-Date: Sun, 08 Nov 2009 21:55:21 EET Organization: Elisa Customer Xref: g2news2.google.com comp.lang.ada:9033 Date: 2009-11-08T21:55:19+02:00 List-Id: On Sun, 08 Nov 2009 04:52:29 -0500 Stephen Leake wrote: > Alex writes: > > > I've written an application in windows that involves writing to the > > clipboard. I'm trying to write a version to work in Linux (Ubuntu 9.04 is > > what I'm developing on) and am struggling to get started with Florist. > > Linux the operating system kernel doesn't have a clipboard. > > X Windows does, and particular window managers may have other > variations on it. > > So you need to look in X Windows documentation, not Linux documentation. Probably the easiest way is to use GtkAda and its clipboard methods: http://www.adacore.com/wp-content/files/auto_update/gtkada-docs/gtkada_rm/gtkada_rm/gtk-clipboard.html And please note that X Window System (which GtkAda uses) has two different clipboards, PRIMARY and CLIPBOARD. (This mostly matters if you need to communicate between two different programs via clipboard.) -- Tero Koskinen - http://iki.fi/tero.koskinen/