WinptyShellBackend constructor

WinptyShellBackend({
  1. required ShellBackend fallback,
  2. String? defaultShell,
  3. String? workingDirectory,
  4. Map<String, String> baseEnvironment = const {},
  5. Map<String, String> baseEnvironmentFor(
    1. Map<String, String> inherited
    )?,
  6. bool allowCommand(
    1. ShellRequest request
    )?,
  7. void onWarning(
    1. String message
    )?,
})

Creates a winpty-based PTY backend decorating fallback.

Implementation

WinptyShellBackend({
  required this.fallback,
  String? defaultShell,
  this.workingDirectory,
  this.baseEnvironment = const {},
  this.baseEnvironmentFor,
  this.allowCommand,
  this.onWarning,
}) : defaultShell = defaultShell ?? resolveDefaultShell() {
  // See `ProcessShellBackend`: the registry baseline at node start.
  primeLiveEnvironment();
}