pty2 0.4.0 copy "pty2: ^0.4.0" to clipboard
pty2: ^0.4.0 copied to clipboard

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

pty #

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

Status #

I'm hacking to keep this working for my needs.

Usage #

A simple usage example:

import 'package:pty2/pty.dart';

void main() async {
  final pty = PseudoTerminal.start('bash', []);

  pty.write('ls\n');

  pty.out.listen((data) {
    print(data);
  });

  print(await pty.exitCode);
}
1
likes
0
points
1.8k
downloads

Publisher

verified publishermcdole.org

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ffi, lints, win32

More

Packages that depend on pty2