libtmux Reference MCP Search
On this page

libtmux::capture_lines

View as Markdown

Module
libtmux
Package
libtmux-cxx
Source
include/libtmux/capture.hpp
capture_lines ( typename Text , Text && ) typename Text ( output : std::string_view ) std::vector< std::string_view >
functionoverload2 overloads [source]
functionoverload2 overloads [source]
capture_lines

The lines are views into the text, so text that dies at the semicolon takes them with it — and pane.capture() returns its output by value, which makes capture_lines(*pane.capture()) the natural thing to write and a use-after-free to run.

Deleted for an rvalue string only: an lvalue string converts as before, and so does a literal.

0 declared, 0 inherited

Esc

Type to search.