nxt::subprocess::SpawnOptions struct

Options for spawning a child attached to a pseudo-terminal.

Public variables

std::vector<std::string> argv
Executable and arguments; argv[0] is the program to run.
std::optional<std::filesystem::path> cwd
Optional working directory for the child.
std::vector<std::string> environment
Complete environment. Empty means inherit the parent environment.
std::vector<std::string> environment_overlay
Environment entries that override or extend the base environment.
Size size
Initial PTY size in terminal cells.