TextView: Add SetMaxLines()

This PR adds a new method to TextView: SetMaxLines(). It will set a limit to how many lines of text the buffer can hold before discarding older data.

Useful for terminal-type text views that show live output from an application. TextView becomes extremely slow when the buffer is too big, but also it does not make sense to accumulate content forever in memory for these applications.

Merge request reports

Loading