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.

The effective value is clamped to at least the initial viewHeight (24 rows): the buffers must always be able to hold a full viewport, otherwise the scrollback offset would go negative and indexing the line buffer would throw.

Implementation

final int maxLines;