copy/paste clipboard - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

copy/paste clipboard

I am trying to write a console program that needs access to the clipboard, but I am having a hard time finding any info. Where can I find the any clipboard functions? Are the functions the same in different Linux distributions? Can the functions be used in console mode, without desktop?

Any help is appreciated

Comments

  • Jeff P.Jeff P. Posts: 196Member
    : I am trying to write a console program that needs access to the clipboard, but I am having a hard time finding any info. Where can I find the any clipboard functions? Are the functions the same in different Linux distributions? Can the functions be used in console mode, without desktop?
    :
    : Any help is appreciated
    :
    :

    Here is a simple application to get/set the X clipboard:
    http://www.niksula.cs.hut.fi/~vherva/xsel/xsel.c

    As far as accessing the console (gpm?) clipboard, that's a whole different animal.

    Check your system for /usr/include/gpm.h or /usr/local/include/gpm.h
    Maybe you can get some ideas from there...
  • AidmanAidman Posts: 15Member
    : : I am trying to write a console program that needs access to the clipboard, but I am having a hard time finding any info. Where can I find the any clipboard functions? Are the functions the same in different Linux distributions? Can the functions be used in console mode, without desktop?
    : :
    : : Any help is appreciated
    : :
    : :
    :
    : Here is a simple application to get/set the X clipboard:
    : http://www.niksula.cs.hut.fi/~vherva/xsel/xsel.c
    :
    : As far as accessing the console (gpm?) clipboard, that's a whole different animal.
    :
    : Check your system for /usr/include/gpm.h or /usr/local/include/gpm.h
    : Maybe you can get some ideas from there...
    :

    OK, thanks mate :)
Sign In or Register to comment.