comint-adjust-point

comint-adjust-point is a compiled Lisp function in `comint.el'.

(comint-adjust-point SELECTED)

Move point in the selected window based on Comint settings.
SELECTED is the window that was originally selected.