maxLines property

int maxLines
final

The number of lines that the scrollback buffer can hold. If the buffer exceeds this size, the lines at the top of the buffer will be removed.

libghostty-vt drops scrollback in whole pages, so somewhat more lines may be kept.

Implementation

final int maxLines;