Line management operations for terminal buffers. Handles line creation, retrieval, and manipulation.
Summary
Functions
Clear a line to spaces.
Create an empty line with the given width.
Create multiple empty lines.
Get a line from the buffer.
Remove lines from the top of the buffer.
Add blank lines or provided lines to the beginning of the buffer.
Set a line in the buffer.
Splits a list of rows for IL/DL at y: the rows above it, the region from
y to bottom (clamped to the rows there are, so a region set for a
taller screen cannot grow the list) and the rows below, with count
clamped to the region's height.
Update a line with a function.
Functions
Clear a line to spaces.
Create an empty line with the given width.
Create multiple empty lines.
Get a line from the buffer.
Remove lines from the top of the buffer.
Add blank lines or provided lines to the beginning of the buffer.
Set a line in the buffer.
@spec split_region(list(), non_neg_integer(), non_neg_integer(), integer()) :: {list(), list(), list(), non_neg_integer()}
Splits a list of rows for IL/DL at y: the rows above it, the region from
y to bottom (clamped to the rows there are, so a region set for a
taller screen cannot grow the list) and the rows below, with count
clamped to the region's height.
Update a line with a function.