Raxol.Terminal.Buffer.LineEditor (Raxol v0.3.0)
View SourceHandles insertion and deletion of lines within the Raxol.Terminal.ScreenBuffer.
Summary
Functions
Deletes a specified number of lines starting from the given row index. Lines below the deleted lines are shifted up. Blank lines are added at the bottom of the buffer to fill the space using the provided default_style. Uses the buffer's default style for new lines.
Inserts a specified number of blank lines at the given row index using the provided default_style. Existing lines from the insertion point downwards are shifted down. Lines shifted off the bottom of the buffer are discarded. Uses the buffer's default style for new lines.
Functions
@spec delete_lines( Raxol.Terminal.ScreenBuffer.t(), integer(), integer(), Raxol.Terminal.ANSI.TextFormatting.text_style() ) :: Raxol.Terminal.ScreenBuffer.t()
Deletes a specified number of lines starting from the given row index. Lines below the deleted lines are shifted up. Blank lines are added at the bottom of the buffer to fill the space using the provided default_style. Uses the buffer's default style for new lines.
@spec insert_lines( Raxol.Terminal.ScreenBuffer.t(), integer(), integer(), Raxol.Terminal.ANSI.TextFormatting.text_style() ) :: Raxol.Terminal.ScreenBuffer.t()
Inserts a specified number of blank lines at the given row index using the provided default_style. Existing lines from the insertion point downwards are shifted down. Lines shifted off the bottom of the buffer are discarded. Uses the buffer's default style for new lines.