Variable: term-buffer-maximum-size
term-buffer-maximum-size is a customizable variable defined in
term.el.gz.
Value
8192
Documentation
The maximum size in lines for term buffers.
Term buffers are truncated from the top to be no greater than this number. Notice that a setting of 0 means "don't truncate anything". This variable is buffer-local.
This variable was added, or its default value changed, in Emacs 27.1.
Source Code
;; Defined in /usr/src/emacs/lisp/term.el.gz
(defcustom term-buffer-maximum-size 8192
"The maximum size in lines for term buffers.
Term buffers are truncated from the top to be no greater than this number.
Notice that a setting of 0 means \"don't truncate anything\". This variable
is buffer-local."
:group 'term
:type 'integer
:version "27.1")