On this page
client.Client.lock
- Module
- client
- Declared in
- Client
- Package
- libtmux
- Source
- crates/libtmux/src/client.rs
-
Lock this client's terminal.
Runs the
lock-commandoption, which islock -npunless the server was told otherwise.crate::Session::locklocks every client attached to one session andcrate::Server::lock_alllocks every client on the server; this locks exactly one.tmux marks a locked client with the flag it uses for a suspended one, so a locked client leaves
crate::Server::clientsthe same way and comes back when itslock-commandexits. A server withlock-after-timeset reaches that state with nobody asking.Errors
Returns an error when tmux refuses the command. Reading through the handle while the client is locked gives
Error::ClientSuspended, notError::ObjectGone.
0 declared, 0 inherited