Skip to main content

Module pr

Module pr 

Source

Structs§

PrConfig
Configuration for the pr command.

Constants§

DEFAULT_PAGE_LENGTH
Default page length in lines.
DEFAULT_PAGE_WIDTH
Default page width in columns.
FOOTER_LINES
Number of footer lines (5 blank).
HEADER_LINES
Number of header lines (2 blank + 1 header + 2 blank).

Functions§

pr_data
Paginate raw byte data — fast path that avoids per-line String allocation. When no tab expansion or control char processing is needed, lines are extracted as &str slices directly from the input buffer (zero-copy).
pr_file
Paginate a single file and write output.
pr_merge
Paginate multiple files merged side by side (-m mode).