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.

struct libtmux-rs latest

SendKeys

Send text or named keys to a pane.

Source and package
Qualified name
libtmux::plan::ops::panes::SendKeys
Module
plan.ops.panes
Package
libtmux
Source
crates/libtmux/src/plan/ops/panes.rs
struct plan.ops.panes.SendKeys

Description#

SendKeys::text() and SendKeys::keys() cannot both be set: tmux resolves every send-keys argument against its key table unless -l literalizes it, and -l covers every argument of the send-keys it sits on. So literal text and named keys cannot share one send-keys, though two of them still share one tmux invocation under a folding planner. crate::plan::Plan::validate() rejects a SendKeys that carries both, before a plan runs.

Members4#

  • enter method Follow the text with Enter.
  • keys method Send named keys such as C-c or Escape.
  • new method Address this pane.
  • text method Send this literal text.

Guides#

Pages that discuss SendKeys.

Esc

Type to search.

Reference previewOpen reference