libtmux Reference MCP Search
On this page

libtmux::Pane::send_text

View as Markdown

Module
libtmux
Declared in
Pane
Package
libtmux-cxx
Source
include/libtmux/entities.hpp
Other languages
PythonTypeScriptRustGo Java .NETSwift
send_text ( text : std::string_view ) expected< void, CommandFailure >
methodreadonly [source]
methodreadonly [source]
send_text

Literal text, never interpreted as key names or formats, and never followed by a newline the caller did not ask for.

Discussed in Pane interaction

In other languages Send keystrokes to a pane

Examples

>>> pane = window.split(shell='sh')
>>> pane.capture_pane()
['$']
>>> pane.send_keys('echo "Hello world"', enter=True)
>>> pane.capture_pane()
['$ echo "Hello world"', 'Hello world', '$']
>>> print('\n'.join(pane.capture_pane()))  # doctest: +NORMALIZE_WHITESPACE
$ echo "Hello world"
Hello world
$

Flag-only invocation — reset terminal state without sending any keys:

>>> pane.send_keys(reset=True)
await pane.sendKeys("echo hello");
await pane.sendKeys("C-c", { literal: false });

0 declared, 0 inherited

Esc

Type to search.