# TmuxShellCommand.encode(to:)

- **Module:** TmuxShellCommand
- **Package:** TmuxWorkspace
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/TmuxWorkspace/Workspace.swift#L139
- **Page:** https://libtmux.org/en/swift/latest/workspace/reference/tmuxshellcommand-encode(to-)/

```
TmuxShellCommand.encode(to:)(to: any Encoder) -> ()
```

Written back the way it was most likely written: a bare string unless `enter` carries information a string cannot.
