comint-skip-prompt

comint-skip-prompt is a compiled Lisp function in `comint.el'.

(comint-skip-prompt)

Skip past the text matching regexp `comint-prompt-regexp'.
If this takes us past the end of the current line, don't skip at all.