On this page
libtmux.Server.server_access
- Module
- libtmux
- Declared in
- Server
- Package
- libtmux
- Source
- src/libtmux/server.py
-
Manage server access control via
$ tmux server-access.Requires tmux 3.3+ (introduced in 3.3).
Examples
>>> from libtmux.common import has_gte_version >>> if has_gte_version("3.3"): ... result = server.server_access(list_access=True) ... assert isinstance(result, list)- Parameters
-
-
read_only ( bool | None ) – Force the user to attach read-only (
-rflag). Implies allow if the user is not already in the ACL. Mutually exclusive with *write* — tmux rejects-r -w. -
write ( bool | None ) – Allow the user to attach read-write (
-wflag). Implies allow if the user is not already in the ACL. Mutually exclusive with *read_only*.
- Returns
-
list[str] | None Access list when *list_access* is True, None otherwise.
0 declared, 0 inherited