fux 0.7.0

Minimal persistent terminal multiplexer built on bevy_ecs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Operating-system adapters: owned pane processes and PTY pumps. Blocking work lives here and on
//! dedicated threads, never inside ECS systems.

pub mod pty;

/// Locks a mutex, taking the data back from a poisoned lock: every guarded value here is a
/// counter or a queue whose partial update is harmless.
pub(crate) fn lock<T>(value: &std::sync::Mutex<T>) -> std::sync::MutexGuard<'_, T> {
    value
        .lock()
        .unwrap_or_else(std::sync::PoisonError::into_inner)
}