use std::io;
#[derive(Clone, Debug)]
pub struct LocalShellConfig {
pub program: Option<String>,
pub args: Vec<String>,
pub env: Vec<(String, String)>,
pub initial_size: (u16, u16),
}
impl Default for LocalShellConfig {
fn default() -> Self {
Self {
program: None,
args: Vec::new(),
env: Vec::new(),
initial_size: (80, 24),
}
}
}
pub struct LocalShell {
_config: LocalShellConfig,
}
impl LocalShell {
pub fn new(config: LocalShellConfig) -> io::Result<Self> {
Err(io::Error::new(
io::ErrorKind::Unsupported,
"LocalShell::new: M1 — see terminal_crate_plan.md",
))?;
#[allow(unreachable_code)]
Ok(Self { _config: config })
}
}