# libtmux._internal.control_mode.ControlMode.__enter__

- **Module:** libtmux._internal.control_mode.ControlMode
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/036c521c4b83ce6e434eb50afe2a0d08a6a05e46/src/libtmux/_internal/control_mode.py#L61
- **Page:** https://libtmux.org/reference/py/libtmux-_internal-control_mode-controlmode-__enter__/

```
libtmux._internal.control_mode.ControlMode.__enter__(self) -> Self
```

Spawn control-mode client and wait for registration.
