pub async fn paste_buffer(
session_id: &str,
buf_name: &str,
tmp_path: &str,
bytes: &[u8],
) -> Result<()>Expand description
Write bytes to the session’s master PTY via tmux’s paste-buffer
mechanism — the supported way to inject raw input (as opposed to
send-keys, which tmux may reinterpret). tmp_path is a scratch file
used to stage the buffer contents and is removed afterwards regardless
of outcome.