ScriptPtyShellBackend constructor

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

Creates a script-based PTY backend decorating fallback.

Implementation

ScriptPtyShellBackend({
  required this.fallback,
  String? defaultShell,
  this.workingDirectory,
  this.baseEnvironment = const {},
  this.allowCommand,
  this.onWarning,
}) : defaultShell = defaultShell ?? resolveDefaultShell();