term-forward-matching-input
term-forward-matching-input is an interactive compiled Lisp function in `term.el
'.
(term-forward-matching-input REGEXP N)
Search forward through buffer for match for REGEXP.
Matches are searched for on lines that match `term-prompt-regexp'.
With prefix argument N, search for Nth following match.
If N is negative, find the previous or Nth previous match.