yazi/yazi-core/src/manager/commands/suspend.rs
2023-12-26 19:48:33 +08:00

15 lines
290 B
Rust

use yazi_scheduler::Scheduler;
use yazi_shared::event::Exec;
use crate::manager::Manager;
impl Manager {
pub fn suspend(&mut self, _: &Exec) -> bool {
#[cfg(unix)]
tokio::spawn(async move {
Scheduler::app_stop().await;
unsafe { libc::raise(libc::SIGTSTP) };
});
false
}
}