mainBuffer property

Buffer get mainBuffer

The main buffer, with scrollback. Readable only while it is active: libghostty-vt 1.0.0 exposes only the active screen, so while the alternate buffer is in use it reads as blank lines (see Buffer).

Implementation

Buffer get mainBuffer => _mainBuffer;