Raxol.Terminal.ScreenBuffer.Screen (Raxol v0.5.0)

View Source

Handles screen buffer operations for the terminal emulator. This module provides functions for managing the screen state, including clearing, erasing, and marking damaged regions.

Summary

Functions

Clears the entire screen.

Erases the entire screen.

Erases the entire screen including scrollback.

Erases from cursor to end of screen.

Erases from cursor to end of line.

Erases from start of line to cursor.

Erases from start of screen to cursor.

Erases the entire line.

Initializes a new screen state.

Marks a region of the screen as damaged.

Functions

clear(screen_state)

Clears the entire screen.

erase_all(screen_state)

Erases the entire screen.

erase_all_with_scrollback(screen_state)

Erases the entire screen including scrollback.

erase_from_cursor_to_end(screen_state)

Erases from cursor to end of screen.

erase_from_cursor_to_end_of_line(screen_state)

Erases from cursor to end of line.

erase_from_start_of_line_to_cursor(screen_state)

Erases from start of line to cursor.

erase_from_start_to_cursor(screen_state)

Erases from start of screen to cursor.

erase_line(screen_state)

Erases the entire line.

init()

Initializes a new screen state.

mark_damaged(screen_state, x, y, width, height)

Marks a region of the screen as damaged.