On this page
pane.Pane.exit_mode
- Module
- pane
- Declared in
- Pane
- Package
- libtmux
- Source
- crates/libtmux/src/pane.rs
-
Leave copy mode, or any other mode the pane is in.
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_modeandchoose-treecreate.Errors
Returns an error when tmux refuses the command.
0 declared, 0 inherited