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.text

Send this literal text.

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

Description#

Rendered with tmux's -l flag, so every byte is typed rather than looked up in the key table first -- text that happens to name a key, such as "Space", is typed rather than pressed. -l literalizes every argument of the send-keys it is on, so this cannot be combined with SendKeys::keys(): crate::plan::Plan::validate() rejects that combination before anything runs.

Parameters
Esc

Type to search.

Reference previewOpen reference