pub fn page_text(content: &str) -> Result<()>Expand description
Page through text content if it exceeds terminal height
Automatically detects terminal height and pages content if needed. Uses a simple “Press Space to continue, q to quit” interface.
§Arguments
content- The text to display (may contain newlines)
§Returns
Returns Ok(()) if successful, or an IO error.
§Example
use oxur_cli::repl::pager;
let long_help = "Line 1\nLine 2\n...";
pager::page_text(long_help).expect("Failed to page");