Permalink
Switch branches/tags
Nothing to show
Commits on Sep 2, 2016
  1. Merge pull request #17 from mptre/master

    Fix segfault when stdin is empty
    committed on GitHub Sep 2, 2016
  2. Merge pull request #18 from t6/master

    Plug memory leak in handle_targets
    committed on GitHub Sep 2, 2016
Commits on Aug 30, 2016
Commits on Aug 25, 2016
  1. Fix segfault when stdin is empty

    When reading input from stdin, ensure the initial read buffer capacity
    is greater than zero. This prevents the program from crashing when
    writing the null terminator to the buffer in read_input.
    mptre committed Aug 25, 2016
Commits on Aug 12, 2016
  1. Merge pull request #9 from gjuniioor/master

    Using markdown syntax
    committed on GitHub Aug 12, 2016
  2. Merge pull request #15 from valeth/xdg

    Use XDG_CACHE_HOME for xsel.log
    committed on GitHub Aug 12, 2016
Commits on Aug 11, 2016
  1. Merge pull request #16 from ebiggers/master

    INCR transfer bug fixes
    committed on GitHub Aug 11, 2016
Commits on Mar 6, 2016
  1. Do not prematurely terminate string while receiving INCR transfer

    This fixes a bug where xsel would only output the first 3999 characters
    of the selection.
    ebiggers committed Mar 6, 2016
  2. Send correct SelectionNotify event when starting INCR transfer

    The target should be copied from that given in SelectionRequest, not set
    to INCR.  This fixes a bug where it was impossible to paste > 4000
    characters of text from xsel to the Chromium browser.  Note that some
    programs, including Chromium, validate the 'target' that is passed back;
    while other programs, such as those which use the GTK clipboard API,
    ignore it.  But based the ICCCM, it appears that xsel is incorrect, not
    chromium:
    
        "The owner should set the specified selection, target, time, and
        propety arguments to the values received in the SelectionRequest event."
    ebiggers committed Mar 6, 2016
Commits on Nov 21, 2015
  1. do not use a dotfile for the log

    valeth committed Nov 21, 2015
  2. add missing semicolon

    valeth committed Nov 21, 2015
  3. change get_homedir to get_xdg_cache_home

    don't write logfiles into the users home directory
    thats just rude :)
    valeth committed Nov 21, 2015
Commits on Apr 19, 2015
  1. Update and rename INSTALL to INSTALL.md

    Rename adding .md because markdown syntaxe
    gjuniioor committed Apr 19, 2015
  2. Update and rename README to README.md

    Rename adding .md because use markdown syntax.
    gjuniioor committed Apr 19, 2015
Commits on Oct 15, 2014
  1. Merge pull request #6 from trespasserw/patch-1

    avoid extra atom at the end of the targets list
    committed Oct 15, 2014
  2. Merge pull request #5 from zevweiss/master

    Fixes and new functionality for '-t'; also a small build fix
    committed Oct 15, 2014
  3. Block terminal signals while handling SelectionRequests.

    The intent is to avoid rudely hanging a client that happens to send
    a SelectionRequest just as we are about to exit (e.g. due to
    receiving SIGALRM while in daemon mode with '-t').
    zevweiss committed Oct 15, 2014
Commits on Oct 13, 2014
Commits on Sep 4, 2014
  1. Give --selectionTimeout meaning in --input mode.

    Daemon simply exits after the specified amount of time.
    zevweiss committed Sep 3, 2014
  2. Fix setitimer(2) usage.

    For '-t' values >= 1000 the itimerval's timeval members weren't
    getting set properly; using ITIMER_VIRTUAL/SIGVTALRM instead of
    ITIMER_REAL/SIGALRM was making it ineffectual anyway.
    zevweiss committed Sep 3, 2014
Commits on Sep 3, 2014
  1. Replace AC_CHECK_LIB with AC_SEARCH_LIBS in configure.ac.

    AC_CHECK_LIB wasn't add -lX11 to LIBS properly.
    zevweiss committed Sep 3, 2014
Commits on Feb 29, 2012
  1. Also accept UTF8_STRING for INCR transfers

    See https://bugzilla.gnome.org/show_bug.cgi?id=671066 for the bug that
    started this.
    
    Xsel was only accepting XA_STRING during INCR transfers; now
    it also takes in UTF8_STRING.  Maybe this bug wasn't triggered
    before because most selection transfers are small, and the transfer
    described in the bug is quite large.
    federicomenaquintero committed Feb 29, 2012
Commits on Apr 12, 2011
  1. Fixed man page for xsel to remove extra -d

    The man page for xsel lists a -d option for both --delete
    and for --display.  The correct use is for --delete.
    jsbillings committed with Apr 12, 2011
Commits on Mar 30, 2011
  1. Add Hans de Goede to AUTHORS

    committed Mar 30, 2011
  2. Fix overflow of supported_targets array

    Patch by Hans de Goede:
    
    I'm one of the developers of spice (a remote virtual machine viewing protocol ala vnc / rdp).
    One of the features of spice is copy / paste between the guest and the client, while testing
    copy and paste with xsel, the spice-client crashed with a BadAtom error. This is caused
    by the spice-client getting the TARGETS property, and then for debugging purposes doing a
    XGetAtomName on all reported target Atoms. xsel however claims to send 9 targets, but
    only send 8 Atoms + 1 piece of random data from memory.
    committed Mar 30, 2011
Commits on Dec 9, 2010
  1. add Taylan Ulrich B. to AUTHORS

    committed Dec 9, 2010
  2. Fix logic of input/output options in pipelines

    Patch by Taylan Ulrich B.
    
    The man page states "If any input or output options are given then the
    program behaves only in the requested mode.", but this doesn't seem to
    be true.
    
    The following will put out "bar", then change the primary selection to "foo".
    
    echo foo | { echo bar | xsel -pi; xsel -po; }
    
    The above example doesn't really make sense since the output of 'echo
    foo' is not otherwise used. However, the following fails too:
    
    echo foo | { echo "$(cat) bar" | xsel -pi; xsel -po; }
    
    That one is a typical example of modifying data in a pipe before
    passing it on to xsel -i, and then showing the result with an extra
    xsel -o. The 'xsel -po' would surely not be expected to affect the
    primary selection, but it does; it seems to read from stdin, which is
    empty because it has been used up by cat, and put it into the primary
    selection, effectively clearing it out.
    (You might say "Put the 'xsel -po' outside the '{...}'.", but that
    part could as well be a shell function or script, over which we'd have
    no control.)
    
        { 'initial_values'  => {},
          'mdf'             => '/u/mdf/mdf-kospi200-woori2.20100910-10199.pcap',
          'branch'          => 'dev'
        },
    committed Dec 9, 2010
Commits on Nov 21, 2010
  1. add Sergey Mironov to AUTHORS

    committed Nov 21, 2010
  2. xsel.c: add --zeroflush option

    Zeroflush mode is enhanced --follow mode. With --zeroflush option, xsel
    will clear selection every time it reads '\0' from stdin.
    ierton committed with Nov 2, 2010
  3. xsel.c: fix --follow mode

    ierton committed with Nov 2, 2010
Commits on Mar 9, 2010
  1. error out if libX11 is not present

    git-svn-id: http://svn.kfish.org/xsel/trunk@281 9c49b5d1-7df3-0310-bce2-b7278e68f44c
    conrad committed Mar 9, 2010
Commits on Apr 30, 2008
  1. When stdout is a tty, use stderr to ensure there is a newline before

    the shell prompt.
    
    (Modified) patch from Yair K.:
    
    If the used selection does not end with a newline, then:
     A) If 'xsel -o' than the command prompt may overwrite the last line (depends
    on $PS1, shell, etc. but I think quite likely to happen)
     B) 'xsel -a -o -i' doesn't display the last line (on Linux at least). The
    last line will still exist after appending, but it isn't displayed. This is
    (I suspect) because stdout is line-buffered, so stdout isn't flushed yet.
    
    
    git-svn-id: http://svn.kfish.org/xsel/trunk@249 9c49b5d1-7df3-0310-bce2-b7278e68f44c
    conrad committed Apr 30, 2008
Commits on Apr 29, 2008
  1. Make '-a' and '-f' set do_input = True. Patch from Yair K.:

    Manpage says '-a' and '-f' imply '-i', so I'd expect 'xsel -o -a' to
    display the selection and let me append to it. instead it displays
    the selection and exits.
    
    
    git-svn-id: http://svn.kfish.org/xsel/trunk@248 9c49b5d1-7df3-0310-bce2-b7278e68f44c
    conrad committed Apr 29, 2008