Pane.exit_mode
Leave copy mode, or any other mode the pane is in.
Source and package
- Qualified name
-
libtmux::pane:: Pane:: exit _mode - Module
- pane
- Declared in
Pane- Package
- libtmux
- Source
- crates/libtmux/src/pane.rs
-
Description#
A pane that is in no mode is left alone rather than refused, so this can be called to reach a known state without asking first.
This dispatches
copy-mode -qrather than the cancel key, because the key reaches a pane through the copy-mode key table and clock mode and tree mode have none: sending it there is answered "not in a mode" while the pane stays in one.-qis the only exit that covers every mode, including the onesSelf::clock_mode()andchoose-treecreate.Errors
Returns an error when tmux refuses the command.
tmux command#
The tmux commands behind exit_mode.
tmux C API#
The C declarations in tmux that implement these commands.