# LibTmux::Client::ClientTarget.lock

- **Module:** LibTmux::Client
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Client.rakumod#L323
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-client-clienttarget-lock/

```
method lock(*%operation --> Result:D)
```

Invoke the configured lock command for this client.

Invoke the configured lock command for this client.

## Parameters

- `%operation`

## tmux command

The tmux commands behind `lock`.

- [`lock-client`](/en/tmux/latest/manual/lock-client/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_lock_client_entry`](/en/tmux/latest/reference/c-variable-cmd_lock_client_entry/) (attribute)
- [`cmd_lock_server_exec`](/en/tmux/latest/reference/c-function-cmd-lock-server-c-cmd_lock_server_exec/) (function)
