Function: eshell-interactive-output-p

eshell-interactive-output-p is a byte-compiled function defined in esh-io.el.gz.

Signature

(eshell-interactive-output-p &optional INDEX HANDLES)

Documentation

Return non-nil if the specified handle is bound for interactive display.

HANDLES is the set of handles to check; if nil, use eshell-current-handles.

INDEX is the handle index to check. If nil, check eshell-output-handle. If all, check both eshell-output-handle and eshell-error-handle.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-io.el.gz
(defun eshell-interactive-output-p (&optional index handles)
  "Return non-nil if the specified handle is bound for interactive display.
HANDLES is the set of handles to check; if nil, use
`eshell-current-handles'.

INDEX is the handle index to check.  If nil, check
`eshell-output-handle'.  If `all', check both
`eshell-output-handle' and `eshell-error-handle'."
  (let ((handles (or handles eshell-current-handles))
        (index (or index eshell-output-handle)))
    (if (eq index 'all)
        (and (equal (caar (aref handles eshell-output-handle)) '(t))
             (equal (caar (aref handles eshell-error-handle)) '(t)))
      (equal (caar (aref handles index)) '(t)))))