initial commit

This commit is contained in:
Zacharias-Brohn
2025-12-12 22:11:20 +01:00
commit 5d47177fbf
19 changed files with 11695 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
//! ZTerm Daemon - Background process that manages terminal sessions.
use zterm::daemon::Daemon;
fn main() {
// Initialize logging
env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info")).init();
log::info!("ZTerm daemon starting...");
match Daemon::new() {
Ok(mut daemon) => {
if let Err(e) = daemon.run() {
log::error!("Daemon error: {}", e);
std::process::exit(1);
}
}
Err(e) => {
log::error!("Failed to start daemon: {}", e);
std::process::exit(1);
}
}
log::info!("ZTerm daemon exiting");
}