> > Cut/paste between other X apps, like xterm, to "import" text
>
> Implemented in M1 (try between XXE and Netscape using Alt+C in Netscape,
> not the mouse selection).
> Unlike Windows, X-Window has several ``clipboards''. The xterm uses
> CUTBUFFER0 (I think) and Java only supports the clipboard named
> CLIPBOARD, so it very difficult to implement.
Hi guys,
I am unable to test this now, but I believe that it is possible to configure
xterm so that it exports the selected text to the 'CLIPBOARD' selection in
addition to the default CUT_BUFFER0. Then it sould be possible to paste
into a swing widget.
This can be done by providing the following resource to xterm:
xterm*VT100.Translations: #override \
<BtnUp>: select-end(PRIMARY, CUT_BUFFER0, CLIPBOARD)
This can be added to a ~/.Xdefaults file, and this updated resource file can
be
loaded onto the X server with the command:
xrdb ~/.Xdefault
All xterms started afterwards will export their selected text to the
CLIPBOARD
selection also.
Another way (with an additional step) to implement cut/paste is to go
through
xemacs, which supports both the CUT_BUFFER0 and the CLIPBOARD.
Gregory Popovitch