Function: xterm-translate-focus-in
xterm-translate-focus-in is a byte-compiled function defined in
xterm.el.gz.
Signature
(xterm-translate-focus-in PROMPT)
Source Code
;; Defined in /usr/src/emacs/lisp/term/xterm.el.gz
;; By returning an empty key sequence, these two functions perform the
;; moral equivalent of the kind of transparent event processing done
;; by read-event's handling of special-event-map, but inside
;; read-key-sequence (which can recognize multi-character terminal
;; notifications) instead of read-event (which can't).
(defun xterm-translate-focus-in (_prompt)
(setf (terminal-parameter nil 'tty-focus-state) 'focused)
(funcall after-focus-change-function)
[])