Crate pager_rs

Source
Expand description

Cross-platform, customizable terminal pager library for rust.

§pager-rs can be used to:

  • show text content with too many lines.
  • dialog with user using custom commands.

§Usage

See: examples

Structs§

Command
Command definition
CommandList
Container of list of commands.
State
State that can be ran with pager_rs::run
StatusBar
StatusBar defination
StatusBarLayout
Layout for a StatusBar line.

Enums§

CommandType
Type of Command.
StatusBarLayoutItem
Layout items for StatusBar.

Functions§

finish
Undo init. Leave alternate screen, disable mouse capture, show the cursor.
init
Setup terminal for running State. Enter alternate screen, enable mouse capture, hide the cursor.
run
Run a State