# TmuxShellCommand

- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/TmuxWorkspace/Workspace.swift#L101
- **Page:** https://libtmux.org/reference/swift/tmuxshellcommand/

A command to put in a pane, and whether to run it.

tmuxp writes most commands as a bare string, and that is what a string
literal here means — type it and press enter. The long form, `{cmd:,
enter:}`, exists to leave a command sitting in the pane unrun, which is why
`enter` is modelled rather than dropped.

## Members

- `init(unicodeScalarLiteral:)` (method)
- `init(extendedGraphemeClusterLiteral:)` (method)
- `!=(_:_:)` (function) — Returns a Boolean value indicating whether two values are not equal.
- `command` (property) — The line to type into the pane.
- `enter` (property) — Whether to press enter after typing it. False leaves the line sitting at the prompt, ready but not run.
- `init(_:enter:)` (method)
- `init(stringLiteral:)` (method) — Creates an instance initialized to the given string value.
- `init(from:)` (method) — Creates a new instance by decoding from the given decoder.
- `encode(to:)` (method) — Written back the way it was most likely written: a bare string unless `enter` carries information a string cannot.
