# TmuxShellCommand.encode(to:)

- **Module:** TmuxShellCommand
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/TmuxWorkspace/Workspace.swift#L138
- **Page:** https://libtmux.org/reference/swift/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.
