Function: eshell-visual-command-p
eshell-visual-command-p is a byte-compiled function defined in
em-term.el.gz.
Signature
(eshell-visual-command-p COMMAND ARGS)
Documentation
Return non-nil when given a visual command.
If either COMMAND or a subcommand in ARGS (e.g. git log) is a visual command, returns non-nil.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/em-term.el.gz
(defun eshell-visual-command-p (command args)
"Return non-nil when given a visual command.
If either COMMAND or a subcommand in ARGS (e.g. git log) is a
visual command, returns non-nil."
(let ((command (file-name-nondirectory command)))
(and (eshell-interactive-output-p 'all)
(or (member command eshell-visual-commands)
(member (car args)
(cdr (assoc command eshell-visual-subcommands)))
(cl-intersection args
(cdr (assoc command eshell-visual-options))
:test 'string=)))))