Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Your lover will never wish to leave you.


comp / comp.os.linux.misc / Re: What is the XA_SECONDARY clipboard?

SubjectAuthor
o Re: What is the XA_SECONDARY clipboard?Javier

1
Subject: Re: What is the XA_SECONDARY clipboard?
From: Javier
Newsgroups: comp.os.linux.misc, comp.os.linux.x
Date: Tue, 7 Apr 2020 00:27 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.dns-netz.com!news.freedyn.net!newsreader4.netcologne.de!news.netcologne.de!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 06 Apr 2020 19:27:37 -0500
From: javier@invalid.invalid (Javier)
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>
Date: Mon, 06 Apr 2020 19:27:37 -0500
Lines: 36
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-cZQGiazsLYJSfro+tsN+EMKev/MuUhW0iifrLVFeRg1lzj8m2O6eJ50t/7JpjsTo91uNDevoSWDXJ8T!vvML81nr1Lgi7wwKalHomiXeRoF/Ne2+oLDe23W+CVg81A5cBYqCAX15I4cBpCx8Sz2wQmuNkG4d!Weq2zKOpKAE51noi0+nOoFwnvWM=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2382
View all headers

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\

1

rocksolid light 0.9.8
clearnet tor