# types.SpawnOptions.historyLimit

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-ts/blob/073b9d7dedad900bff6f5ec0ea47794e40225870/packages/libtmux/src/types.ts#L575
- **Page:** https://libtmux.org/en/ts/latest/reference/types-spawnoptions-historylimit/

Lines of scrollback kept for [`Program.output`](/en/ts/latest/reference/program-program-output/), for `"session"`, up to tmux's 2147483647. Defaults to 100000; older lines are dropped, and [`ProgramResult.lostStart`](/en/ts/latest/reference/types-programresult-loststart/) says so. It bounds the output too: at most this many rows plus the screen's, each [`width`](/en/ts/latest/reference/types-spawnoptions-width/) columns, the newest kept.
