term-previous-matching-input-string
term-previous-matching-input-string is a compiled Lisp function in `term.el
'.
(term-previous-matching-input-string REGEXP ARG)
Return the string matching REGEXP ARG places along the input ring.
Moves relative to `term-input-ring-index'.