PDA

View Full Version : Linux Paste


ArmEagle
28th October 2004, 13:21
:3eclipsee for Pluribus the :crown: and our little big :santa2:.
Linux (and OSX?) has been given an early Xmas present called "paste".
No more [] when typing Ctrl-V.

The game uses CLIPBOARD for copy & paste. Like most X programs that use Ctrl-C & V. Though personally I use non-graphical programs most of the time together with ATITD. So I found a way to convert CLIPBOARD to SELECTION and vice versa.

I installed the program xclip which can do lots of things with the different textbuffers.
I wrote 2 simple scripts that combine 2 calls to xclip to convert between CLIPBOARD and SELECTION. Then I mapped these scripts to some hotkeys (I run Fluxbox here and simply edit ~/.fluxbox/keys).

So if you can map hotkeys in your windowmanager too and can isntall xclip, then I have the simple scripts here for you:


# convert clipboard to selection
xclip -o -selection CLIPBOARD | xclip -i -selection PRIMARY
# convert selection to clipboard
xclip -o -selection PRIMARY | xclip -i -selection CLIPBOARD


Once I had a simpel X program installed with some buttons that could do the conversion, but I forgot the name. And I prefer using hotkeys anyway.

:thumbsup:

Pluribus
28th October 2004, 15:21
Linux works exceept for some nits with the main chat channel. and I havent pushed out a version that translates \r and \n to " \r" and " \n" yet. (Which fixes the wacky chat minimizing on pastes)

IE - It works but not perfect yet.

Pluribus
28th October 2004, 15:22
OSX is still being debugged. It seems to ONLY work with ingame only not at all to and from out of game.... WTF?

RdiPhtyRe
8th November 2004, 15:33
I was hoping for Marzipan (almond paste)!