Raxol.Terminal.Commands.Scrolling (Raxol v0.5.0)
View SourceHandles scrolling operations for the terminal screen buffer.
Summary
Functions
Scrolls the buffer down by the specified number of lines.
Functions
@spec scroll_down( Raxol.Terminal.ScreenBuffer.t(), non_neg_integer(), {integer(), integer()} | nil, Raxol.Terminal.ANSI.TextFormatting.text_style() ) :: Raxol.Terminal.ScreenBuffer.t()
Scrolls the buffer down by the specified number of lines.
Parameters
buffer
- The screen buffer to modifycount
- The number of lines to scroll downscroll_region
- Optional scroll region override {top, bottom}blank_style
- Style to apply to blank lines
Returns
Updated screen buffer
@spec scroll_up( Raxol.Terminal.ScreenBuffer.t(), non_neg_integer(), {integer(), integer()} | nil, Raxol.Terminal.ANSI.TextFormatting.text_style() ) :: Raxol.Terminal.ScreenBuffer.t()