comint-scroll-to-bottom-on-input is a variable defined in `comint.el'.
Its value is

  • This variable's value is permanent if it is given a local binding.

Controls whether input to interpreter causes window to scroll.
If nil, then do not scroll. If t or `all', scroll all windows showing buffer.
If `this', scroll only the selected window.

The default is nil.

See `comint-preinput-scroll-to-bottom'. This variable is buffer-local.

You can customize this variable.