Files
ghostty/include
Mitchell Hashimoto c55f213aa2 terminal: add option to disable scrollback pull on resize
#14294

This adds a boolean flag throughout the Zig API and C API to control
whether resizing can pull scrollback back into the active area. The
default is true, which is the existing behavior.

Ptys that keep their own screen buffer without scrollback (namely
Windows ConPTY) can't pull rows back, so after a resize that pulls we
disagree with the pty about what is on screen and subsequent output
lands in the wrong place. 

Row growth always appends blank rows at the bottom when pulling is
disabled. 

Refs:
7c92ecd037/src/cascadia/TerminalCore/Terminal.cpp (L380-L406)
c58ea3637f/src/common/buffer/Buffer.ts (L194-L197)
b09b56c29c/term/src/screen.rs (L268-L288)
2026-09-18 08:48:04 -07:00
..