pager

package
Version: v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pager

type Pager struct {
	// contains filtered or unexported fields
}

func NewPager

func NewPager(r io.Reader) *Pager

func (*Pager) Render

func (p *Pager) Render() error

Renders the input buffer until the user exits

type ViewBuffer

type ViewBuffer struct {
	// contains filtered or unexported fields
}

func NewViewBuffer

func NewViewBuffer(r io.Reader) *ViewBuffer

func (*ViewBuffer) CurrentView

func (v *ViewBuffer) CurrentView() []string

func (*ViewBuffer) ScrollBottom

func (v *ViewBuffer) ScrollBottom()

func (*ViewBuffer) ScrollDown

func (v *ViewBuffer) ScrollDown()

func (*ViewBuffer) ScrollDownN

func (v *ViewBuffer) ScrollDownN(n int)

func (*ViewBuffer) ScrollToLine

func (v *ViewBuffer) ScrollToLine(projectedBeginIndex int)

func (*ViewBuffer) ScrollTop

func (v *ViewBuffer) ScrollTop()

func (*ViewBuffer) ScrollUp

func (v *ViewBuffer) ScrollUp()

func (*ViewBuffer) Search

func (v *ViewBuffer) Search(token string) bool

func (*ViewBuffer) SearchFromLine

func (v *ViewBuffer) SearchFromLine(lineIndex int, searchToken string, stopAtLineIndex int) (int, bool)

func (*ViewBuffer) SetMaxHeight

func (v *ViewBuffer) SetMaxHeight(height int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL