term-previous-input-string

term-previous-input-string is a compiled Lisp function in `term.el'.

(term-previous-input-string ARG)

Return the string ARG places along the input ring.
Moves relative to `term-input-ring-index'.