*** Select active regions with xterm selection support.
On terminals with xterm setSelection support, the active region may be
saved to the X primary selection, following the
-'select-active-regions' variable. This support is enabled with
-'xterm-select-active-regions'.
+'select-active-regions' variable. This support is enabled when
+'tty-select-active-regions' is non-nil.
** ERT
(defalias 'display-multi-frame-p #'display-graphic-p)
(defalias 'display-multi-font-p #'display-graphic-p)
-;; From term/xterm.el
-(defvar xterm-select-active-regions)
+(defcustom tty-select-active-regions nil
+ "If non-nil, update PRIMARY window-system selection on text-mode frames.
+On a text-mode terminal that supports setSelection command, if
+this variable is non-nil, Emacs will set the PRIMARY selection
+from the active region, according to `select-active-regions'.
+This is currently supported only on xterm."
+ :version "29.1"
+ :type 'boolean)
(defun display-selections-p (&optional display)
"Return non-nil if DISPLAY supports selections.
(not (null dos-windows-version))))
((memq frame-type '(x w32 ns pgtk))
t)
- ((and xterm-select-active-regions
+ ((and tty-select-active-regions
(terminal-parameter nil 'xterm--set-selection))
t)
(t
:version "28.1"
:type 'boolean)
-(defcustom xterm-select-active-regions nil
- "If non-nil, update PRIMARY X selection on text-mode frames.
-On a text-mode terminal that supports setSelection command, if
-this variable is non-nil, Emacs will set the PRIMARY selection
-from the active region, according to `select-active-regions'."
- :version "29.1"
- :type 'boolean)
-
(defconst xterm-paste-ending-sequence "\e[201~"
"Characters sent by the terminal to end a bracketed paste.")