pager

package
v0.44.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPagerClosed = errors.New("cannot write to closed terminal pager")
View Source
var ErrPagerNotFound = errors.New("no terminal pager available. Please configure a terminal pager by setting the $PAGER environment variable or install \"less\" or \"more\"")

Functions

func New

func New(outputWriter io.Writer) (io.WriteCloser, error)

New runs the terminal pager configured in the OS environment and returns a writer that is piped to the standard input of the pager command.

func NewWithFallback

func NewWithFallback(outputWriter io.Writer) (io.WriteCloser, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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