Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

libtmux::Pane::send_line

C++
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++
  • Swift Unavailable

View as Markdown

Module
libtmux
Declared in
Pane
Package
libtmux-cxx
Source
include/libtmux/entities.hpp
send_line ( text : std::string_view ) → expected< void, CommandFailure >
methodreadonly [source]
methodreadonly [source]
send_line

The text and then Enter, as one tmux invocation.

Running a command in a pane is two commands to tmux, and sending them separately costs two round trips and leaves a window where the line is typed and not submitted. This sends both in one batch, which tmux runs fail-fast, so a refused line is not followed by an Enter.

Empty text sends Enter alone, which is what submitting a blank line means. send_text refuses it instead: there, nothing would be sent.

0 declared, 0 inherited

Esc

Type to search.