Function doh::ops::paging_copy
[−]
[src]
pub fn paging_copy<R: Read, W: Write>(
reader: &mut R,
writer: &mut W,
label: &str,
input: &Getch,
term_size: (usize, usize)
) -> Result<bool>
Copy label
led data from reader
to writer
, stopping each screen, wrapping at term_size
,
polling input
for instructions.
Never panics, returns Ok(true)
if paging succeeded or Ok(false)
if paged data isn't UTF-8.
Controls on nonlast pages
Key | Result |
---|---|
Escape | stop paging |
Any key | go to next page |
Controls on last page:
Key | Result |
---|---|
Any key | stop paging |