# types.SpawnOptions.historyLimit

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-ts/blob/ad09eaef7ffff40f510989ee0695852c44a31576/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.
