# LibTmux.Workspace.WorkspaceCommand.WorkspaceCommand

- **Module:** LibTmux.Workspace
- **Package:** LibTmux.Workspace
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux.Workspace/WorkspaceCommand.cs#L9
- **Page:** https://libtmux.org/en/csharp/latest/workspace/reference/libtmux-workspace-workspacecommand-workspacecommand/

```
LibTmux.Workspace.WorkspaceCommand.WorkspaceCommand(text: string, enter: bool?)
```

Initializes a command, inheriting the current Enter state by default.

## Parameters

- `text` (`string`): The literal text to send to the pane.
- `enter` (`bool?`): Whether this and later commands press Enter, or null to inherit.
