[konsole] [Bug 372116] New: Feature Request: Support OSC 52 (copy to clipboard)

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Sat Nov 5 19:10:20 UTC 2016


https://bugs.kde.org/show_bug.cgi?id=372116

            Bug ID: 372116
           Summary: Feature Request: Support OSC 52 (copy to clipboard)
           Product: konsole
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: copy-paste
          Assignee: konsole-devel at kde.org
          Reporter: xiaqqaix at gmail.com
  Target Milestone: ---

OSC 52 is a escape sequence that allows terminal applications to manipulate the
system clipboard. For instance, tmux will write such sequences when copying
text, if the set-clipboard option is on.

The following description is copied from
https://github.com/mintty/mintty/issues/258:

small rfe, add support for xterm's clipboard OSC

paraphrasing from http://invisible-island.net/xterm/ctlseqs/ctlseqs.html

Operating System Controls
OSC 52 ; Pc ; Pd ST
OSC 52 ; Pc ; Pd BEL

-> Manipulate Selection Data.

The first parameter, Pc, is used to construct a list of selection parameters 
for clipboard, primary, select, or cut buffers (not important at all).  If the 
parameter is empty, xterm uses s 0 , to specify the configurable 
primary/clipboard selection and cut buffer 0. (Would be enough to always 
default to clipboard)

The second parameter, Pd, gives the selection data.  Normally this is a string 
encoded in base64.  The data becomes the new selection, which is then available 
for pasting by other applications. (This is important, base64 encoded data 
should be decoded and saved in the clipboard)

If the second parameter is a ? , xterm replies to the host with the selection 
data encoded using the same protocol.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list