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.
Click to show internal directories.
Click to hide internal directories.