Raxol.Terminal.ScreenBuffer.EraseOperations (Raxol v2.0.1)
View SourceHandles all erase operations for the terminal screen buffer.
This module provides focused functionality for erasing content from the buffer, including line erasing, display erasing, and region clearing operations.
Summary
Functions
Clears a specific region of the buffer.
Erases the entire buffer.
Erases from the cursor to the end of the screen using the current cursor position.
Erases from cursor to end of display.
Erases from start to cursor position.
Erases part or all of the display based on the cursor position and type. Type can be :to_end, :to_beginning, or :all.
Erases part or all of the current line based on the cursor position and type. Type can be :to_end, :to_beginning, or :all.
Functions
@spec clear_region( Raxol.Terminal.ScreenBuffer.t(), non_neg_integer(), non_neg_integer(), non_neg_integer(), non_neg_integer() ) :: Raxol.Terminal.ScreenBuffer.t()
Clears a specific region of the buffer.
@spec erase_all(Raxol.Terminal.ScreenBuffer.t()) :: Raxol.Terminal.ScreenBuffer.t()
Erases the entire buffer.
@spec erase_from_cursor_to_end(Raxol.Terminal.ScreenBuffer.t()) :: Raxol.Terminal.ScreenBuffer.t()
Erases from the cursor to the end of the screen using the current cursor position.
@spec erase_from_cursor_to_end( Raxol.Terminal.ScreenBuffer.t(), non_neg_integer(), non_neg_integer(), non_neg_integer(), non_neg_integer() ) :: Raxol.Terminal.ScreenBuffer.t()
Erases from cursor to end of display.
@spec erase_from_start_to_cursor( Raxol.Terminal.ScreenBuffer.t(), non_neg_integer(), non_neg_integer(), non_neg_integer(), non_neg_integer() ) :: Raxol.Terminal.ScreenBuffer.t()
Erases from start to cursor position.
@spec erase_in_display( Raxol.Terminal.ScreenBuffer.t(), {non_neg_integer(), non_neg_integer()}, atom() ) :: Raxol.Terminal.ScreenBuffer.t()
Erases part or all of the display based on the cursor position and type. Type can be :to_end, :to_beginning, or :all.
@spec erase_in_line( Raxol.Terminal.ScreenBuffer.t(), {non_neg_integer(), non_neg_integer()}, atom() ) :: Raxol.Terminal.ScreenBuffer.t()
Erases part or all of the current line based on the cursor position and type. Type can be :to_end, :to_beginning, or :all.