pty 0.2.2-pre
pty: ^0.2.2-pre copied to clipboard
Pty for Dart and Flutter. Provides the ability to create processes with pseudo terminal file descriptors.
import 'package:pty/pty.dart';
void main() async {
final pty = PseudoTerminal.start('bash', []);
pty.write('ls\n');
pty.out.listen((data) {
print(data);
});
print(await pty.exitCode);
}