-   Programming (
-   -   Clear X clipboard contents (

Wynd 01-22-2007 01:50 AM

Clear X clipboard contents
I want to write a small C program to clear the X clipboard contents (or set it to "" or something). I've been looking at the xset code but I can't make out what actually sets the contents. Can someone help me out?

jlliagre 01-22-2007 01:57 AM

Hmm, why are you asking again a question someone already answered to you ?

If the problem is C++ and QT, have a look at xclip

Wynd 01-22-2007 11:12 AM

I'm asking again because those programs are nice but kind of overkill for what I want. I don't need super clipboard managing capabilities, I just want something to clear it.

jlliagre 01-22-2007 02:01 PM

I'd suggest you to run "xclip -i /dev/null" under a debugger, step by step, and keep only the functions and instructions used.

All times are GMT -5. The time now is 12:11 PM.