term-next-matching-input
term-next-matching-input is an interactive compiled Lisp function in `term.el
'.
(term-next-matching-input REGEXP N)
Search forwards through input history for match for REGEXP.
(Later history elements are more recent commands.)
With prefix argument N, search for Nth following match.
If N is negative, find the previous or Nth previous match.