libtmux::Pane::send_line
C++
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++
- Swift Unavailable
- Module
- libtmux
- Declared in
- Pane
- Package
- libtmux-cxx
- Source
- include/libtmux/entities.hpp
- send_line ( text : std::string_view ) expected< void, CommandFailure >
-
The text and then Enter, as one tmux invocation.
Running a command in a pane is two commands to tmux, and sending them separately costs two round trips and leaves a window where the line is typed and not submitted. This sends both in one batch, which tmux runs fail-fast, so a refused line is not followed by an Enter.
Empty text sends Enter alone, which is what submitting a blank line means.
send_textrefuses it instead: there, nothing would be sent.
0 declared, 0 inherited