clipboard?

Guiserver, GTK-server, OpenGL, PostScript,
HTML 5, MIDI, IDE
Locked
tom
Posts: 168
Joined: Wed Jul 14, 2004 10:32 pm

clipboard?

Post by tom »

hi guys,

can newlisp access the x clipboard? (linux?) May I have an example?

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

On Mandrake Linux 9.2 I can copy/paste from/to newLISP running in a Bash shell or when running the newLISP-tk frontend, but I am not sure if it is that what you mean?

If you want to access the X-clipboard from inside a program written in newLISP, there is no built-on function available, but I am pretty sure it is possible to import a 'C' function from the X shared libraries. If you can point me to a 'C' function and also the shared library involved, I could show you how to import it into newLISP.

Lutz

tom
Posts: 168
Joined: Wed Jul 14, 2004 10:32 pm

Post by tom »

I'm having trouble narrowing down the particular library, but am pretty sure it's one of those included in the debian "xlibs" package. I looked through /lib/ but, well, not all library names are intuitive...:-) I'm pretty sure it's not "the clipboard" in x, rather, it's the "selection."

Anyway, that's the track I'm on. Thanks.

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

Additionally to the name of the function and the library we will also need a description on how to use this function, parameters to pass, their types etc..

Perhaps a book about X-programming could point you in the right direction.

Lutz

Locked