Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

pane.Pane.exit_mode

Rust
  • Python Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
pane
Declared in
Pane
Package
libtmux
Source
crates/libtmux/src/pane.rs
exit_mode ( self ) → Result<(), Error>
method [source]
method [source]
exit_mode

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 -q rather 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. -q is the only exit that covers every mode, including the ones Self::clock_mode and choose-tree create.

Errors

Returns an error when tmux refuses the command.

0 declared, 0 inherited

Esc

Type to search.