yazi/yazi-core/src/manager/commands/suspend.rs
2024-03-02 20:33:34 +08:00

14 lines
261 B
Rust

use yazi_proxy::AppProxy;
use yazi_shared::event::Cmd;
use crate::manager::Manager;
impl Manager {
pub fn suspend(&mut self, _: Cmd) {
#[cfg(unix)]
tokio::spawn(async move {
AppProxy::stop().await;
unsafe { libc::raise(libc::SIGTSTP) };
});
}
}