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

View Source

Line insertion operations for terminal buffers. Handles insertion of single and multiple lines with style support.

Summary

Functions

do_insert_lines(buffer, y, count, style)

@spec do_insert_lines(map(), integer(), integer(), map()) :: map()

Internal insertion with default style.

do_insert_lines_with_style(buffer, y, count, scroll_top, scroll_bottom)

@spec do_insert_lines_with_style(
  map(),
  integer(),
  integer(),
  integer(),
  integer()
) :: map()

Insert lines with style in a scroll region.

insert_lines(buffer, count)

@spec insert_lines(map(), integer()) :: map()

Insert empty lines at the current cursor position.

insert_lines(buffer, y, count)

@spec insert_lines(map(), integer(), integer()) :: map()

insert_lines(buffer, y, count, style)

@spec insert_lines(map(), integer(), integer(), map()) :: map()

insert_lines(buffer, y, count, scroll_top, scroll_bottom)

@spec insert_lines(map(), integer(), integer(), integer(), integer()) :: map()

insert_lines(buffer, y, count, scroll_top, scroll_bottom, style)

@spec insert_lines(map(), integer(), integer(), integer(), integer(), map()) :: map()