LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-22-2007, 01:50 AM   #1
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Rep: Reputation: 32
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?
 
Old 01-22-2007, 01:57 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,481

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Hmm, why are you asking again a question someone already answered to you ?

http://www.linuxquestions.org/questi...d.php?t=521332

If the problem is C++ and QT, have a look at xclip http://people.debian.org/~kims/xclip/
 
Old 01-22-2007, 11:12 AM   #3
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Original Poster
Rep: Reputation: 32
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.
 
Old 01-22-2007, 02:01 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,481

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clear clipboard via command line? Wynd Linux - General 4 02-03-2010 11:26 PM
how can i clear the contents of a file from a C program? tinieprotonjam Programming 5 01-05-2007 11:37 AM
list contents of directory without listing contents baddah Linux - Newbie 2 06-12-2006 04:02 AM
How to clear a std::string buff.clear()? lucky6969b Programming 3 03-17-2006 07:50 AM
how do i replace the clear "clear screen" with the cls command thefedexguy Suse/Novell 2 12-02-2005 05:02 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration