Struct pager_rs::State [−][src]
pub struct State {
pub pos: (usize, usize),
pub size: (u16, u16),
pub content: String,
pub status_bar: StatusBar,
pub commands: CommandList,
pub show_line_numbers: bool,
// some fields omitted
}
Fields
pos: (usize, usize)
Cursor position in content.
(x, y)
size: (u16, u16)
Size of terminal screen.
(width, height)
content: String
Content to show.
status_bar: StatusBar
status bar at the bottom.
commands: CommandList
show_line_numbers: bool
Implementations
Get text to be printed on terminal except for the StatusBar
.
Find and execute command matching with pressed key.