Function: ansi-osc-window-title-handler

ansi-osc-window-title-handler is a byte-compiled function defined in ansi-osc.el.gz.

Signature

(ansi-osc-window-title-handler _ TEXT)

Documentation

Set value of ansi-osc-window-title from an OSC 2 escape sequence.

The variable ansi-osc-window-title can then be referenced in frame-title-format to dynamically set the frame title.

This function is intended to be included as an element of the list that is the value of ansi-osc-handlers.

Source Code

;; Defined in /usr/src/emacs/lisp/ansi-osc.el.gz
(defun ansi-osc-window-title-handler (_ text)
  "Set value of `ansi-osc-window-title' from an OSC 2 escape sequence.
The variable `ansi-osc-window-title' can then be referenced in
`frame-title-format' to dynamically set the frame title.

This function is intended to be included as an element of the
list that is the value of `ansi-osc-handlers'."
  (setq ansi-osc-window-title text))