TerminalPtyLibraryBase constructor

TerminalPtyLibraryBase({
  1. String executable = "sh",
  2. String? workingDirectory,
  3. String? libraryPtyPath,
  4. List<String>? arguments,
  5. Map? environment,
  6. int rows = 25,
  7. int columns = 80,
  8. bool isAckRead = false,
})

Spawns a process in a pseudo-terminal. The arguments have the same meaning as in Process.start. ackRead indicates if the pty should wait for a call to PtyLibrary.ackRead before sending the next data.

Implementation

TerminalPtyLibraryBase({
  this.executable = "sh",
  this.workingDirectory,
  String? libraryPtyPath,
  List<String>? arguments,
  this.environment,
  this.rows = 25,
  this.columns = 80,
  this.isAckRead = false,
}) {
  if (arguments != null) {
    this.arguments = arguments;
  } else {
    this.arguments = [];
  }
  if (libraryPtyPath != null) {
    this.libraryPtyPath = libraryPtyPath;
  } else {
    this.libraryPtyPath = TerminalPtyLibraryBase.defaultLibraryPtyPath;
  }
}