Raxol.Terminal.Buffer.LineOperations.Utils (Raxol v2.0.1)

View Source

Shared utility functions for line operations. Extracted to eliminate code duplication between Deletion and Insertion modules.

Summary

Functions

Fills new lines in the buffer with empty cells.

Functions

fill_new_lines(buffer, start_y, count, style)

@spec fill_new_lines(map(), non_neg_integer(), non_neg_integer(), map() | nil) ::
  map()

Fills new lines in the buffer with empty cells.

Parameters

  • buffer: The buffer to modify
  • start_y: Starting line index
  • count: Number of lines to fill
  • style: Style to apply to new cells

Returns

Updated buffer with filled lines