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

SendKeys.keys

Send named keys such as C-c or Escape.

Source and package
Qualified name
libtmux::plan::ops::panes::SendKeys::keys
Module
plan.ops.panes
Declared in
SendKeys
Package
libtmux
Source
crates/libtmux/src/plan/ops/panes.rs
#[must_use] pub fn keys<K: Into<OsString>>( mut self, keys: impl IntoIterator<Item = K> ) -> Self

Description#

Resolved against tmux's key table, which is why this cannot be combined with SendKeys::text(): literal text needs -l, and -l would literalize these too. crate::plan::Plan::validate() rejects the combination before anything runs.

Type parameters
Parameters
Esc

Type to search.

Reference previewOpen reference