Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-rs latest

ControlSender.pause_after

Have tmux pause a pane rather than let this connection fall behind.

Source and package
Qualified name
libtmux::control::ControlSender::pause_after
Module
control
Declared in
ControlSender
Package
libtmux
Source
crates/libtmux/src/control.rs
pub async fn pause_after(&self, behind: Duration) -> Result< (), Error >

Description#

Without this, tmux disconnects a control client that falls more than five minutes behind, losing everything the connection was for. With it, tmux instead reports Event::Paused for the offending pane and keeps the connection, and every Event::Output becomes an Event::ExtendedOutput carrying how far behind it was.

Errors

Returns an error when the connection has closed or tmux refuses the pause policy.

Parameters

tmux command#

The tmux commands behind pause_after.

tmux C API#

The C declarations in tmux that implement these commands.

Esc

Type to search.

Reference previewOpen reference