title: A way to get the content on selected text from mouse through te OS API
body: <p>Is there a way to get the content on selected text from mouse in any application through the API of operating system (<code>Linux</code>/<code>OSX</code>) in <code>C</code>/<code>C++</code>? I know that exist the <code>xsel</code> program on Linux, but exist a <code>xsel</code> API? I don't wanna use the <code>excve</code>/<code>excvp</code> call.</p>
  
  <p>Thanks!</p>