Variable: ghostel-max-scrollback

ghostel-max-scrollback is a customizable variable defined in ghostel.el.

Value

5242880

Documentation

Maximum scrollback size in bytes.

5 MB holds roughly 5,000 rows on a typical 80-column terminal
(fewer on wider terminals — the cost scales with column count).

The full scrollback is materialized into the Emacs buffer so that isearch, consult-line, and other buffer-based commands work across history. Each materialized row also lives in the Emacs buffer with text properties for color/style/links, so the practical Emacs heap cost is roughly equal to the libghostty allocation, and large values noticeably slow down sustained high-throughput output (e.g. cat huge.log).

Source Code

;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defcustom ghostel-max-scrollback (* 5 1024 1024)  ; 5MB
  "Maximum scrollback size in bytes.
5 MB holds roughly 5,000 rows on a typical 80-column terminal
\(fewer on wider terminals — the cost scales with column count).

The full scrollback is materialized into the Emacs buffer so that
`isearch', `consult-line', and other buffer-based commands work
across history.  Each materialized row also lives in the Emacs
buffer with text properties for color/style/links, so the
practical Emacs heap cost is roughly equal to the libghostty
allocation, and large values noticeably slow down sustained
high-throughput output (e.g. `cat huge.log')."
  :type 'integer)