closeStdin method
Signals end-of-input on standard input (half-close).
Implementation
@override
Future<void> closeStdin() async {
// A PTY has no half-close; deliver the terminal EOF character (Ctrl-D) so
// the line discipline signals end-of-input to the foreground program.
try {
_process.stdin.add(const [0x04]);
} on Object {
// Ignore: child already gone.
}
}