Raxol.Terminal.Commands.Scrolling (Raxol v0.5.0)

View Source

Handles scrolling operations for the terminal screen buffer.

Summary

Functions

scroll_down(buffer, count, scroll_region, blank_style)

Scrolls the buffer down by the specified number of lines.

Parameters

  • buffer - The screen buffer to modify
  • count - The number of lines to scroll down
  • scroll_region - Optional scroll region override {top, bottom}
  • blank_style - Style to apply to blank lines

Returns

Updated screen buffer

scroll_up(buffer, count, scroll_region, blank_style)