Function: eshell--reset-after-signal

eshell--reset-after-signal is a byte-compiled function defined in esh-proc.el.gz.

Signature

(eshell--reset-after-signal STATUS)

Documentation

Reset the prompt after a signal when necessary.

STATUS is the status associated with the signal; if eshell-reset-signals matches status, reset the prompt.

This is really only useful when "signaling" while there's no foreground process. Otherwise, eshell-resume-command handles everything.

Aliases

eshell-reset-after-proc (obsolete since 30.1)

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-proc.el.gz
(defun eshell--reset-after-signal (status)
  "Reset the prompt after a signal when necessary.
STATUS is the status associated with the signal; if
`eshell-reset-signals' matches status, reset the prompt.

This is really only useful when \"signaling\" while there's no
foreground process.  Otherwise, `eshell-resume-command' handles
everything."
  (when (and (stringp status)
	     (string-match eshell-reset-signals status))
    (eshell-reset)))