# Server.sendKeys(_:to:literally:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/PaneInteraction.swift#L35
- **Page:** https://libtmux.org/reference/swift/server-sendkeys(_-to-literally-)/

```
Server.sendKeys(_:to:literally:)(keys: [String], to: Pane, literally: Bool) -> ()
```

Sends keys to a pane.

- Parameters:
  - keys: what to send, one argument per key or literal string.
  - pane: the pane to send them to.
  - literally: sends the text as characters rather than letting tmux
    read names like `Enter` or `C-c` out of it. Use it for anything
    that came from a user.

## Raises

- `TmuxError`
