GNU bug report logs -
#36879
26.2; OSC 52 paste in term/xterm.el not working
Previous Next
Reported by: daniel <at> ekloef.se (Daniel Eklöf)
Date: Wed, 31 Jul 2019 17:17:02 UTC
Severity: normal
Tags: patch
Found in version 26.2
Done: Mattias Engdegård <mattiase <at> acm.org>
Bug is archived. No further changes may be made.
Full log
Message #58 received at 36879 <at> debbugs.gnu.org (full text, mbox):
>> - The feature is fundamentally dodgy from a security perspective.
> I'm probably missing something obvious, but how is talking to xclip more
> secure than talking to the terminal emulator? Or is the "security
> perspective" somewhere else?
I remember various attack vectors. They're not necessarily trivial
to exploit, but it's still problematic (which is likely why it's
disabled by default in Debian's build).
>> So I'm not sure it's worth the trouble supporting this, really:
>> In many/most cases `xclip-mode` can be used instead, and is much
>> more straightforward.
> Except that xclip assumes x11.
I'm talking about xclip-mode, not xclip.
> (before I tried this, OSC 52, I was using
> https://github.com/bugaevc/wl-clipboard with my own Emacs "bindings" - yes,
> I'm on Wayland)
xclip-mode also has code to support wl-clipboard (I never tested it, tho).
> Would it not make sense to support a window protocol agnostic method?
> By supporting OSC 52, you support whatever clipboard mechanism the
> terminal emulator supports.
It has its advantages, of course. But also its downsides.
The overlap with xclip-mode is fairly large, tho.
Stefan
This bug report was last modified 5 years and 285 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.