* lisp/term/xterm.el: Add gui-get-selection support via OSC-52
commit816a2b369d0490e67fd5a57c9f18bb2c533e80e4
authorPhilipp Stephani <phst@google.com>
Mon, 25 May 2015 21:03:50 +0000 (25 17:03 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 25 May 2015 21:03:50 +0000 (25 17:03 -0400)
tree72c6dfa080468e1edcbf8b169577ee8136764a30
parent49c8458d7b7194a7b6f347bf4a730391df74df2b
* lisp/term/xterm.el: Add gui-get-selection support via OSC-52

(xterm--extra-capabilities-type): Add `getSelection'.
(xterm--query): Add `no-async' argument.
(xterm--init-activate-get-selection): New function.
(terminal-init-xterm): Use it.
(xterm--init-modify-other-keys): Rename from
terminal-init-xterm-modify-other-keys.
(xterm--init-bracketed-paste-mode): Rename from
terminal-init-xterm-bracketed-paste-mode.
(xterm--init-activate-set-selection): Rename from
terminal-init-xterm-activate-set-selection.
(xterm--selection-char): New function.
(gui-backend-set-selection): Use it.  Use the &context to only apply
this method in terminals where we enabled the feature.
(gui-backend-get-selection): New method.
etc/NEWS
lisp/term/xterm.el