ztmux 0.1.0

A Rust port of tmux — the full terminal multiplexer, server and client
Documentation
1
2
3
4
5
6
7
8
/// C `vendor/tmux/compat/getdtablecount.c:32`: `int getdtablecount(void)`
pub fn getdtablecount() -> i32 {
    if let Ok(read_dir) = std::fs::read_dir("/proc/self/fd") {
        read_dir.count() as i32
    } else {
        0
    }
}