pager

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KEY_Q = iota
	KEY_E
	KEY_B
	KEY_ENTER
)

Variables

This section is empty.

Functions

func Start

func Start(head, tail, lines []Line) (int, error)

Start

Types

type Line

type Line struct {
	Text string
	Fg   termbox.Attribute
	Bg   termbox.Attribute
	X    int
}

type Pager

type Pager struct {
	Head  []Line
	Tail  []Line
	Lines []Line
	Index int
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL