Function: eshell-reset
eshell-reset is a byte-compiled function defined in esh-mode.el.gz.
Signature
(eshell-reset &optional NO-HOOKS)
Documentation
Output a prompt on a new line, aborting any current input.
If NO-HOOKS is non-nil, then eshell-post-command-hook won't be run.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-mode.el.gz
(defsubst eshell-reset (&optional no-hooks)
"Output a prompt on a new line, aborting any current input.
If NO-HOOKS is non-nil, then `eshell-post-command-hook' won't be run."
(goto-char (point-max))
(setq eshell-last-input-start (point-marker)
eshell-last-input-end (point-marker)
eshell-last-output-start (point-marker)
eshell-last-output-block-begin (point)
eshell-last-output-end (point-marker))
(eshell-begin-on-new-line)
(unless no-hooks
(run-hooks 'eshell-post-command-hook)
(goto-char (point-max))))