class

Glimmer::TUI::Pager

Inherits Reference < Object

Pager provides scrollable viewing of rendered markdown content.

Constructors

new(content : String, wrap_width : Int32 = 80)
Source

Class methods

help_text

Returns help text for keybindings

Source

Instance methods

at_bottom?(height : Int32) : Bool

Returns true if at the bottom

Source
at_top?

Returns true if at the top

Source
content
Source
content=(content : Array(String))
Source
go_to_bottom(height : Int32)

Scrolls to the bottom

Source
go_to_top

Scrolls to the top

Source
page_down(height : Int32)

Scrolls down by one page

Source
page_up(height : Int32)

Scrolls up by one page

Source
render(screen : Screen, height : Int32, width : Int32, title : String = "")

Renders the pager content to the screen

Source
scroll_down

Scrolls down by one line

Source
scroll_line
Source
scroll_line=(scroll_line : Int32)
Source
scroll_percent

Returns the current scroll percentage

Source
scroll_up

Scrolls up by one line

Source
visible_height
Source
visible_height=(visible_height : Int32)
Source
wrap_width
Source
wrap_width=(wrap_width : Int32)
Source