Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

libtmux::capture_lines

C++
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++
  • Swift Unavailable

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.