t-rec 0.9.0-preview3

Blazingly fast terminal recorder that generates animated gif images for the web written in rust.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod x11_api;

use crate::core::common::{Platform, PlatformApi, PlatformApiFactory};
use crate::core::Result;
use x11_api::X11Api;

impl PlatformApiFactory for Platform {
    fn setup() -> Result<Box<dyn PlatformApi>> {
        Ok(Box::new(X11Api::new()?))
    }
}

// Used in binary crate only (main.rs)
pub const DEFAULT_SHELL: &str = "/bin/sh";