Variable: term-clear-full-screen-programs

term-clear-full-screen-programs is a customizable variable defined in term.el.gz.

Value

t

Documentation

Whether to clear contents of full-screen terminal programs after exit.

If non-nil, output of full-screen terminal programs is cleared after exiting them. Note however that a minority of such programs don't send an appropriate escape sequence to the terminal before exiting so their output isn't cleared regardless of this option.

This variable was added, or its default value changed, in Emacs 29.1.

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/term.el.gz
(defcustom term-clear-full-screen-programs t
  "Whether to clear contents of full-screen terminal programs after exit.
If non-nil, output of full-screen terminal programs is cleared after
exiting them.  Note however that a minority of such programs
don't send an appropriate escape sequence to the terminal before
exiting so their output isn't cleared regardless of this option."
  :version "29.1"
  :type 'boolean
  :group 'term)