On this page
libtmux::capture_lines
- 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 >
-
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 makescapture_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