yazi/yazi-term/src/lib.rs
2026-05-22 17:00:06 +08:00

13 lines
330 B
Rust

mod macros;
yazi_macro::mod_flat!(dimension error semaphore style term timeout);
yazi_macro::mod_pub!(event parser restorer sequence source stream terminal waker);
pub fn init() -> anyhow::Result<()> {
YIELD_TO_SUBPROCESS.init(tokio::sync::Semaphore::new(1));
TERM.init(terminal::Terminal::new(&yazi_tty::TTY)?);
Ok(())
}