pty 0.1.1 copy "pty: ^0.1.1" to clipboard
pty: ^0.1.1 copied to clipboard

Pty for Dart and Flutter. Provides the ability to create processes with pseudo terminal file descriptors.

example/pty_example.dart

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);
}
7
likes
100
pub points
48%
popularity

Publisher

unverified uploader

Pty for Dart and Flutter. Provides the ability to create processes with pseudo terminal file descriptors.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

ffi, win32

More

Packages that depend on pty