module Tput::Output::Scrolling
Included Modules
- Crystallabs::Helpers::Alias_Methods
- Tput::Macros
Direct including types
Defined in:
tput/output/scrolling.crInstance Method Summary
-
#index
Moves the cursor one line down without changing column position, scrolling if needed.
-
#reverse_index
ESC M Reverse Index (RI is 0x8d).
-
#scroll_down(param = 1)
CSI Ps T Scroll down Ps lines (default = 1) (SD).
-
#scroll_up(param = 1)
CSI Ps S Scroll up Ps lines (default = 1) (SU).
-
#set_scroll_region(top : Int = 0, bottom : Int = (@screen.height - 1))
Set scroll region.
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
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
.