term-set-scroll-region

term-set-scroll-region is a compiled Lisp function in `term.el'.

(term-set-scroll-region TOP BOTTOM)

Set scrolling region.
TOP is the top-most line (inclusive) of the new scrolling region,
while BOTTOM is the line following the new scrolling region (e.g. exclusive).
The top-most line is line 0.