Skip to main content

pipe_to_pager

Function pipe_to_pager 

Source
pub fn pipe_to_pager(content: &str)
Expand description

Pipe content through a pager (respects $PAGER, defaults to less -R).

Spawns the pager as a child process and writes content to its stdin. Falls back to printing directly if the pager cannot be spawned.