comint-previous-prompt

comint-previous-prompt is an interactive compiled Lisp function in `comint.el'.


(comint-previous-prompt N)

Move to end of Nth previous prompt in the buffer.
If `comint-use-prompt-regexp' is nil, then this means the beginning of
the Nth previous `input' field, otherwise, it means the Nth occurrence of
text matching `comint-prompt-regexp'.