Function: term-next-prompt

term-next-prompt is an interactive and byte-compiled function defined in term.el.gz.

Signature

(term-next-prompt N)

Documentation

Move to end of Nth next prompt in the buffer.

See term-prompt-regexp.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/term.el.gz
(defun term-next-prompt (n)
  "Move to end of Nth next prompt in the buffer.
See `term-prompt-regexp'."
  (interactive "p")
  (let ((paragraph-start term-prompt-regexp))
    (end-of-line (if (> n 0) 1 0))
    (forward-paragraph n)
    (term-skip-prompt)))