cag 0.0.2

Context aware pager
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::io;
use std::sync::mpsc;

use thiserror::Error;

#[derive(Error, Debug)]
pub enum Error {
    #[error("Could not initialize terminal")]
    Io(#[from] io::Error),
    #[error("Could not read input")]
    StreamingReceive(#[from] mpsc::RecvError),
    #[error("Could not send input to terminal")]
    StreamingSend,
    #[error("Timeout while waiting for input stream")]
    StreamingTimeout(#[from] std::sync::mpsc::RecvTimeoutError),
}