ScriptPtyShellBackend constructor
ScriptPtyShellBackend({
- required ShellBackend fallback,
- String? defaultShell,
- String? workingDirectory,
- Map<
String, String> baseEnvironment = const {}, - bool allowCommand(
- ShellRequest request
- void onWarning(
- 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();