module Tput::Output::Scrolling

Included Modules

Direct including types

Defined in:

tput/output/scrolling.cr

Instance Method Summary

Instance Method Detail

def index #

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

ESC D Index (IND is 0x84).

Aliases: ind, scroll_forward


[View source]
def reverse_index #

ESC M Reverse Index (RI is 0x8d).


[View source]
def scroll_down(param = 1) #

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


[View source]
def scroll_up(param = 1) #

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


[View source]
def 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.


[View source]