libtmux::capture_lines
C++
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++
- Swift Unavailable
- 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