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.]] expected<std::vector <std::string >, KeyError > literal_arguments(std::string text);_view -
Description#
--is part of the fragment rather than something a caller appends, because text beginning with a dash is read as anothersend-keysoption 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, andChain::send_text()did not — so the same text through the two spellings reached tmux as two different commands.- Parameters