ianvs_terminal_core 0.1.0
ianvs_terminal_core: ^0.1.0 copied to clipboard
Embeddable macOS Flutter terminal with a native PTY runtime, viewport, themed bottom panel, and session lifecycle APIs.
example/ianvs_terminal_core_example.dart
import 'package:flutter/services.dart';
import 'package:ianvs_terminal_core/ianvs_terminal_core.dart';
TerminalRuntimeController createTerminalRuntime() {
return TerminalRuntimeController.native(
copyToClipboard: (text) => Clipboard.setData(ClipboardData(text: text)),
readClipboard: () async =>
(await Clipboard.getData('text/plain'))?.text ?? '',
);
}