Server.lock_all
Lock every client on the server.
Source and package
-
Description#
Runs each client's
lock-command, which islock -npunless the server was told otherwise. Succeeds when nobody is attached, having locked nobody.crate::Session::lock()narrows this to one session andcrate::Client::lock()to one client.Errors
Returns an error when tmux refuses the command.
tmux command#
The tmux commands behind lock_all.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Lock every client attached to the server
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | no equivalent on Server |
| Go | tmux |
| Java | io |
| C# | Lib |
| C++ | no equivalent on Server |
| Swift | no equivalent on Server |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |
No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.