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