Raxol.Terminal.Buffer.Scroller (Raxol v0.4.0)

View Source

Handles scrolling operations (up and down) within the Raxol.Terminal.ScreenBuffer, considering scroll regions.

Summary

Functions

Scrolls the buffer down by the specified number of lines, optionally within a specified scroll region. Handles cell manipulation using provided lines from scrollback. Expects lines_to_insert from the caller (e.g., Buffer.Manager via Buffer.Scrollback).

Scrolls the buffer up by the specified number of lines, optionally within a specified scroll region. Handles cell manipulation. Returns {updated_buffer, scrolled_off_lines}.

Functions

scroll_down(buffer, lines_to_insert, lines, scroll_region_arg \\ nil)

Scrolls the buffer down by the specified number of lines, optionally within a specified scroll region. Handles cell manipulation using provided lines from scrollback. Expects lines_to_insert from the caller (e.g., Buffer.Manager via Buffer.Scrollback).

scroll_up(buffer, lines, scroll_region_arg \\ nil)

Scrolls the buffer up by the specified number of lines, optionally within a specified scroll region. Handles cell manipulation. Returns {updated_buffer, scrolled_off_lines}.