Function: xterm-set-window-title
xterm-set-window-title is a byte-compiled function defined in
xterm.el.gz.
Signature
(xterm-set-window-title &optional TERMINAL)
Documentation
Set the window title of the Xterm TERMINAL.
The title is constructed from frame-title-format.
Probably introduced at or before Emacs version 27.1.
Source Code
;; Defined in /usr/src/emacs/lisp/term/xterm.el.gz
(defun xterm-set-window-title (&optional terminal)
"Set the window title of the Xterm TERMINAL.
The title is constructed from `frame-title-format'."
(unless (display-graphic-p terminal)
(send-string-to-terminal
(format "\e]2;%s\a" (format-mode-line frame-title-format))
terminal)))