module

Tput::Output::Scrolling

Inherits Tput::Macros / Crystallabs::Helpers::Alias_Methods

Instance methods

index

Moves the cursor one line down without changing column position, scrolling if needed.

ESC D Index (IND is 0x84).

Aliases: ind, scroll_forward

Source
reverse_index

ESC M Reverse Index (RI is 0x8d).

Source
scroll_down(param = 1)

CSI Ps T Scroll down Ps lines (default = 1) (SD).

Source
scroll_up(param = 1)

CSI Ps S Scroll up Ps lines (default = 1) (SU).

Source
set_scroll_region(top : Int = 0, bottom : Int = (@screen.height - 1))

Set scroll region.

CSI Ps ; Ps r
  Set Scrolling Region [top;bottom] (default = full size of win-
  dow) (DECSTBM).
CSI ? Pm r

NOTE: This function uses absolute values, so negative numbers are not brought back to 0, but instead count from the bottom of the screen up.

NOTE: Similarly, there is no checking that the top value is smaller than bottom.

Source