Raxol.Terminal.Emulator.ScreenOperations (Raxol v2.0.1)

View Source

Screen operation functions extracted from the main emulator module. Handles screen clearing and line clearing operations.

Summary

Functions

Clears the entire line.

Clears the entire screen.

Clears from cursor to end of screen.

Clears from cursor to end of line.

Clears from start of line to cursor.

Clears from start of screen to cursor.

Clears the current line.

Types

emulator()

@type emulator() :: Raxol.Terminal.Emulator.Struct.t()

Functions

clear_entire_line(emulator, y)

@spec clear_entire_line(emulator(), non_neg_integer()) :: emulator()

Clears the entire line.

clear_entire_screen(emulator)

@spec clear_entire_screen(emulator()) :: emulator()

Clears the entire screen.

clear_from_cursor_to_end(emulator, x, y)

@spec clear_from_cursor_to_end(
  emulator(),
  non_neg_integer(),
  non_neg_integer()
) :: emulator()

Clears from cursor to end of screen.

clear_from_cursor_to_end_of_line(emulator, x, y)

@spec clear_from_cursor_to_end_of_line(
  emulator(),
  non_neg_integer(),
  non_neg_integer()
) :: emulator()

Clears from cursor to end of line.

clear_from_start_of_line_to_cursor(emulator, x, y)

@spec clear_from_start_of_line_to_cursor(
  emulator(),
  non_neg_integer(),
  non_neg_integer()
) :: emulator()

Clears from start of line to cursor.

clear_from_start_to_cursor(emulator, x, y)

@spec clear_from_start_to_cursor(
  emulator(),
  non_neg_integer(),
  non_neg_integer()
) :: emulator()

Clears from start of screen to cursor.

clear_line(emulator)

@spec clear_line(emulator()) :: emulator()

Clears the current line.