eshell-preinput-scroll-to-bottom

eshell-preinput-scroll-to-bottom is a compiled Lisp function in `esh-mode.el'.

(eshell-preinput-scroll-to-bottom)

Go to the end of buffer in all windows showing it.
Movement occurs if point in the selected window is not after the
process mark, and `this-command' is an insertion command. Insertion
commands recognized are `self-insert-command', `yank', and
`hilit-yank'. Depends on the value of
`eshell-scroll-to-bottom-on-input'.

This function should be a pre-command hook.