Function: eshell-maybe-output-newline

eshell-maybe-output-newline is a byte-compiled function defined in esh-io.el.gz.

Signature

(eshell-maybe-output-newline &optional HANDLE-INDEX HANDLES)

Documentation

Maybe insert a newline, using HANDLE-INDEX specifically.

This inserts a newline for all line-oriented output targets.

If HANDLE-INDEX is nil, output to eshell-output-handle. HANDLES is the set of file handles to use; if nil, use eshell-current-handles.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-io.el.gz
(defun eshell-maybe-output-newline (&optional handle-index handles)
  "Maybe insert a newline, using HANDLE-INDEX specifically.
This inserts a newline for all line-oriented output targets.

If HANDLE-INDEX is nil, output to `eshell-output-handle'.
HANDLES is the set of file handles to use; if nil, use
`eshell-current-handles'."
  (let ((targets (caar (aref (or handles eshell-current-handles)
                             (or handle-index eshell-output-handle)))))
    (dolist (target targets)
      (when (eshell-target-line-oriented-p target)
        (eshell-output-object-to-target "\n" target)))))