module Tput::Output::Scrolling

Included Modules

Direct including types

Defined in:

tput/output/scrolling.cr

Instance Method Summary

Instance Method Detail

def decstbm(top : Int = 0, bottom : Int = (@screen.height - 1)) #

A bare * only opens the keyword-only section — there is nothing to forward for it. Everything after it must be passed by name. A bare * only opens the keyword-only section — there is nothing to forward for it. Everything after it must be passed by name. :nodoc:


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 sd(param = 1) #

A bare * only opens the keyword-only section — there is nothing to forward for it. Everything after it must be passed by name. :nodoc:


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 Uses absolute values; negative numbers count from the bottom of the screen rather than clamping to 0.

NOTE No check that top is smaller than bottom.


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

A bare * only opens the keyword-only section — there is nothing to forward for it. Everything after it must be passed by name. :nodoc: