On this page
client.Client.suspend
- Module
- client
- Declared in
- Client
- Package
- libtmux
- Source
- crates/libtmux/src/client.rs
-
Suspend this client, as if its user pressed the suspend key.
The handle survives, and deliberately: unlike
Self::detach, this stops the client rather than ending it. tmux stops listing a suspended client, soServer::clientswill not show it and the session stops counting it as attached, but it is still there. It returns when its process continues, which for a suspended client isSIGCONT.Server::clients: crate::Server::clientsErrors
Returns an error when tmux refuses the command. Reading through the handle afterwards gives
Error::ClientSuspendedrather thanError::ObjectGone, so a caller can tell this from a client that left.
0 declared, 0 inherited