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

unquote

Undo the quoting tmux applies when it prints a value.

Source and package
Qualified name
libtmux::unquote
Namespace
libtmux
Package
libtmux-cxx
Source
include/libtmux/options.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]] std::string unquote(std::string_view value);

Description#

tmux picks one of four forms, and a reader that knows only one corrupts the rest: '' for an empty value; double quotes when the value contains any of #';${}; single quotes when it contains a double quote; and otherwise no quotes at all. Inside any of them the body is escaped the way vis does it — \t, \n, \\, \ooo for a byte with no printable form — and a leading tilde is escaped whether or not anything else is.

This is the inverse of tmux's own args_escape, so a value read here and written back is the value that was there.

Parameters
Esc

Type to search.

Reference previewOpen reference