ztmux 3.7.20

A Rust port of tmux — the full terminal multiplexer, server and client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[cfg(target_os = "linux")]
/// C `vendor/tmux/compat/getprogname.c:25`: `const char *getprogname(void)`
pub unsafe fn getprogname() -> *const u8 {
    unsafe extern "C" {
        static mut program_invocation_short_name: *mut u8;
    }

    unsafe { program_invocation_short_name }
}

#[cfg(target_os = "macos")]
/// C `vendor/tmux/compat/getprogname.c:25`: `const char *getprogname(void)`
pub unsafe fn getprogname() -> *const u8 {
    c"tmux".as_ptr().cast()
}