Core LibraryalphaAPI 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.

function libtmux-cxx latest

literal_arguments

Send text exactly as written: the flag, the end of flags, and the text.

Source and package
Qualified name
libtmux::literal_arguments
Namespace
libtmux
Package
libtmux-cxx
Source
include/libtmux/keys.hpp
[[C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.Language documentation]] expected<std::vector<std::string>, KeyError> literal_arguments(std::string_view text);

Description#

-- is part of the fragment rather than something a caller appends, because text beginning with a dash is read as another send-keys option without it and that is not a mistake worth making twice. It was made twice: this returned the flag and the text alone, Pane::send_text() inserted the separator afterwards, and Chain::send_text() did not — so the same text through the two spellings reached tmux as two different commands.

Parameters
Esc

Type to search.

Reference previewOpen reference