So I have been loving CodeBlocks (13.12 now) for a few years now and Linux (mint16) for a few months.
Any ways I'm trying to get a program to put a string onto my main clipboard, which I can do fine from a terminal with something like:
~ $ echo "This Text TEST" | xsel -i -b
Which puts "This Text TEST" on the clip board. So when I write this to the terminal from C using the code:
int main()
{
system("echo \"This Text\" | xsel -i -b");
return 0;
}
it puts "This Text" on the clipboard as expected and the program exits as expected. But then I can't re-run the program until I copy some other text. By can't re-run I mean the green 'build and run' arrow is still grey.
http://imgur.com/d1mLElr but the second I copy some random text 'build and run' comes alive again. So what is really running that little run arrow? I 'Press ENTER to continue.' and nothing. any Ideas, Thanks in advance