Workspace ManagerconceptAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

Workspace Manager: API Reference

workspace.Command

struct workspace.Command

Command is one command to run in a pane. YAML accepts either a bare string or a mapping, so "echo hi" and {cmd: echo hi, sleep_before: 2} are both commands.

Guides#

Pages that discuss Command.

Fields4#

Command fields
NameTypeDescription
Command string Command is the text typed into the pane.
SleepBefore time.Duration SleepBefore delays this command. YAML expresses the duration in seconds, so 0.5 is half a second.
SleepAfter time.Duration SleepAfter delays the commands that follow this one, in the same units.
Enter *Bool Enter reports whether to press Enter after the command. Nil presses it, matching tmuxp, where omitting enter runs the command.

Other members1#

  • UnmarshalYAML method UnmarshalYAML decodes a command written as a bare string or as a mapping.
Esc

Type to search.

Reference previewOpen reference