Function: xterm-mouse-position-function

xterm-mouse-position-function is a byte-compiled function defined in xt-mouse.el.gz.

Signature

(xterm-mouse-position-function POS)

Documentation

Bound to mouse-position-function in XTerm mouse mode.

Source Code

;; Defined in /usr/src/emacs/lisp/xt-mouse.el.gz
;; Indicator for the xterm-mouse mode.

(defun xterm-mouse-position-function (pos)
  "Bound to `mouse-position-function' in XTerm mouse mode."
  (if (terminal-parameter nil 'xterm-mouse-x)
      (cons (terminal-parameter nil 'xterm-mouse-frame)
            (cons (terminal-parameter nil 'xterm-mouse-x)
		  (terminal-parameter nil 'xterm-mouse-y)))
    pos))