Open JensvandeWiel opened 1 year ago
I get this:
C:/Users/jens/scoop/apps/dart/3.1.0/bin/dart.exe --enable-asserts C:\Users\jens\MyProjects\flutter-learn\dart-pty-test\bin\dart_pty_test.dart Unhandled exception: Invalid argument(s): Failed to load dynamic library 'flutter_pty.dll': error code 126 #0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:43) #1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12) #2 _dylib.<anonymous closure> (package:flutter_pty/flutter_pty.dart:20:27) #3 _dylib (package:flutter_pty/flutter_pty.dart:23:2) #4 _dylib (package:flutter_pty/flutter_pty.dart) #5 _bindings (package:flutter_pty/flutter_pty.dart:25:38) #6 _bindings (package:flutter_pty/flutter_pty.dart) #7 _init.<anonymous closure> (package:flutter_pty/flutter_pty.dart:28:10) #8 _init (package:flutter_pty/flutter_pty.dart:29:2) #9 _init (package:flutter_pty/flutter_pty.dart) #10 _ensureInitialized (package:flutter_pty/flutter_pty.dart:32:7) #11 new Pty.start (package:flutter_pty/flutter_pty.dart:57:5) #12 main (file:///C:/Users/jens/MyProjects/flutter-learn/dart-pty-test/bin/dart_pty_test.dart:8:19) #13 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:296:19) #14 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12) Process finished with exit code 255
with:
import 'dart:convert'; import 'package:flutter_pty/flutter_pty.dart'; void main() { final pty = Pty.start('powershell'); pty.output.listen((event) { print(utf8.decode(event)); }); pty.resize(30, 80); pty.kill(); }
I get this:
with: