Groups | Search | Server Info | Login | Register


Groups > comp.os.linux.x > #289

Re: What is the XA_SECONDARY clipboard?

From Javier <javier@invalid.invalid>
Subject Re: What is the XA_SECONDARY clipboard?
Newsgroups comp.os.linux.misc, comp.os.linux.x
References <o9n8a5$fd6$1@dont-email.me> <eli$1703081723@qz.little-neck.ny.us>
Message-ID <wI-dnbqOac5kVRbDnZ2dnUU78K_NnZ2d@brightview.co.uk> (permalink)
Date 2020-04-06 19:27 -0500

Cross-posted to 2 groups.

Show all headers | View raw


In comp.os.linux.misc Eli the Bearded <*@eli.users.panix.com> wrote:
>> I am very familiar with the first two.  What is XA_SECONDARY?
>> And how do I use it?
> 
> $ tail -3 ~/.Xdefaults
> XTerm.vt100.translations: #override                        \n\
>   <Key>KP_Subtract: insert-selection(SECONDARY) \n\
> 
> $ echo "This is SECONDARY!" | xclip -selection secondary
> $ : now start a new xtem and hit key-pad minus
> 
> You can also use the '-name NAME' option to xterm to have it look for
> default settings under a different name (NAME.vt100.translations) for
> those times when you want a mapping only for testing or some particular
> terminal based program.
> 
> Elijah
> ------
> didn't figure out how to copy to SECONDARY from xterm

To copy to SECONDARY it would be:

$ tail -3 ~/.Xdefaults
XTerm.vt100.translations: #override                        \n\
  <Key>KP_Subtract: insert-selection(SECONDARY) \n\
  <Key>KP_Add: select-end(SECONDARY)

But I find secondary too confusing to use.

What I find more useful is to copy to clipboard holding the shift key
together with the mouse keys, as xterm by default only copies/paste to primary.

          ~Shift~Ctrl<Btn2Up>: insert-selection(PRIMARY, CUT_BUFFER0) \n\
           Shift~Ctrl<Btn2Up>: insert-selection(CLIPBOARD, CUT_BUFFER1) \n\
          ~Shift     <BtnUp> : select-end(PRIMARY, CUT_BUFFER0) \n\
           Shift     <BtnUp> : select-end(CLIPBOARD, CUT_BUFFER1) \n\

Back to comp.os.linux.x | Previous | NextPrevious in thread | Find similar


Thread

Re: What is the XA_SECONDARY clipboard? Eli the Bearded <*@eli.users.panix.com> - 2017-03-08 22:36 +0000
  Re: What is the XA_SECONDARY clipboard? T <T@invalid.invalid> - 2017-03-16 09:31 -0700
  Re: What is the XA_SECONDARY clipboard? Charles Lindsey <chl@clerew.man.ac.uk> - 2017-03-22 16:23 +0000
    Re: What is the XA_SECONDARY clipboard? Eli the Bearded <*@eli.users.panix.com> - 2017-03-22 20:07 +0000
  Re: What is the XA_SECONDARY clipboard? Javier <javier@invalid.invalid> - 2020-04-06 19:19 -0500
    Re: What is the XA_SECONDARY clipboard? Rich <rich@example.invalid> - 2020-04-07 02:10 +0000
      Re: What is the XA_SECONDARY clipboard? Javier <javier@invalid.invalid> - 2020-04-07 07:49 -0500
        Re: What is the XA_SECONDARY clipboard? Rich <rich@example.invalid> - 2020-04-07 15:12 +0000
          Re: What is the XA_SECONDARY clipboard? Javier <javier@invalid.invalid> - 2020-04-07 15:13 -0500
    Re: What is the XA_SECONDARY clipboard? F Russell <fr@random.info> - 2020-04-07 02:48 +0000
      Re: What is the XA_SECONDARY clipboard? T <T@invalid.invalid> - 2020-04-06 21:41 -0700
        Re: What is the XA_SECONDARY clipboard? Eli the Bearded <*@eli.users.panix.com> - 2020-04-13 00:49 +0000
          Re: What is the XA_SECONDARY clipboard? Richard Kettlewell <invalid@invalid.invalid> - 2020-04-13 09:18 +0100
    Re: What is the XA_SECONDARY clipboard? Charles Lindsey <chl@clerew.man.ac.uk> - 2020-04-13 19:07 +0100
      Re: What is the XA_SECONDARY clipboard? Eli the Bearded <*@eli.users.panix.com> - 2020-04-13 19:51 +0000
        Re: What is the XA_SECONDARY clipboard? Charles Lindsey <chl@clerew.man.ac.uk> - 2020-04-14 21:00 +0100
          Re: What is the XA_SECONDARY clipboard? Richard Kettlewell <invalid@invalid.invalid> - 2020-04-14 22:13 +0100
          Re: What is the XA_SECONDARY clipboard? Andreas Kohlbach <ank@spamfence.net> - 2020-04-15 08:16 -0400
  Re: What is the XA_SECONDARY clipboard? Javier <javier@invalid.invalid> - 2020-04-06 19:27 -0500

csiph-web