Raxol.Terminal.Buffer.Operations (Raxol v2.0.1)

View Source

Compatibility adapter for consolidated buffer operations. Forwards calls to Raxol.Terminal.ScreenBuffer.Operations.

Summary

Functions

Clears a line.

Clears a rectangular region.

Clears to beginning of line.

Clears to beginning of screen.

Clears to end of line.

Clears to end of screen.

Deletes a character at the cursor position.

Deletes a line.

Deletes multiple lines (compatibility function).

Inserts a character at the cursor position.

Inserts a blank line.

Inserts multiple lines (compatibility function).

Writes a character at the specified position.

Writes text starting at the specified position.

Functions

clear_line(buffer, y)

@spec clear_line(term(), non_neg_integer()) :: term()

Clears a line.

clear_region(buffer, x, y, width, height)

@spec clear_region(
  term(),
  non_neg_integer(),
  non_neg_integer(),
  non_neg_integer(),
  non_neg_integer()
) :: term()

Clears a rectangular region.

clear_to_beginning_of_line(buffer)

@spec clear_to_beginning_of_line(term()) :: term()

Clears to beginning of line.

clear_to_beginning_of_screen(buffer)

@spec clear_to_beginning_of_screen(term()) :: term()

Clears to beginning of screen.

clear_to_end_of_line(buffer)

@spec clear_to_end_of_line(term()) :: term()

Clears to end of line.

clear_to_end_of_screen(buffer)

@spec clear_to_end_of_screen(term()) :: term()

Clears to end of screen.

copy_region(buffer, src_x, src_y, width, height, dest_x, dest_y)

Copies a region to another location.

delete_char(buffer)

@spec delete_char(term()) :: term()

Deletes a character at the cursor position.

delete_line(buffer, y)

@spec delete_line(term(), non_neg_integer()) :: term()

Deletes a line.

delete_lines(buffer, y, count, style \\ nil)

Deletes multiple lines (compatibility function).

delete_lines(buffer, lines, y, top, bottom)

fill_region(buffer, x, y, width, height, char, style \\ nil)

@spec fill_region(
  term(),
  non_neg_integer(),
  non_neg_integer(),
  non_neg_integer(),
  non_neg_integer(),
  String.t(),
  map() | nil
) :: term()

Fills a region with a character.

insert_char(buffer, char, style \\ nil)

@spec insert_char(term(), String.t(), map() | nil) :: term()

Inserts a character at the cursor position.

insert_line(buffer, y)

@spec insert_line(term(), non_neg_integer()) :: term()

Inserts a blank line.

insert_lines(buffer, y, count, style \\ nil)

Inserts multiple lines (compatibility function).

insert_lines(buffer, lines, y, top, bottom)

write_char(buffer, x, y, char, style \\ nil)

@spec write_char(
  term(),
  non_neg_integer(),
  non_neg_integer(),
  String.t(),
  map() | nil
) :: term()

Writes a character at the specified position.

write_text(buffer, x, y, text, style \\ nil)

@spec write_text(
  term(),
  non_neg_integer(),
  non_neg_integer(),
  String.t(),
  map() | nil
) :: term()

Writes text starting at the specified position.