# pane.Pane.send_line

- **Module:** pane.Pane
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/pane.rs#L669
- **Page:** https://libtmux.org/en/rs/latest/reference/pane-pane-send_line/

```
pane.Pane.send_line(self, text: impl Into<OsString>) -> Result<(), Error>
```

Send literal text followed by Enter as one dispatch.

The text is sensitive and stays out of diagnostics.

# Errors

Returns an error when tmux refuses the line.

# Cancel safety

The effect may or may not have happened, but never half of it: the text
and its Enter travel as one `send-keys`, so a dropped future cannot leave
a line typed and not submitted. A retry can type the line twice.
