mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-24 08:11:04 +00:00
13 lines
330 B
Rust
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(())
|
|
}
|