pager

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package pager provides terminal pager functionality for long outputs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithPagerWriter

func WithPagerWriter(stdout io.Writer, noPager bool, fn func(w io.Writer) error) error

WithPagerWriter executes fn with pager support. If noPager is true or stdout is not a TTY, output goes directly to the provided writer. If the output fits within the terminal height, it's written directly without paging. Otherwise, output is displayed through moor pager.

Types

This section is empty.

Jump to

Keyboard shortcuts

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