comint-previous-input-string

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

(comint-previous-input-string ARG)

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