xterm_plus 4.1.0
xterm_plus: ^4.1.0 copied to clipboard
Fast and fully-featured terminal emulator for Flutter applications with mobile and desktop support.
xterm_plus #
xterm_plus is a fast and fully-featured terminal emulator for Flutter applications, with support for mobile and desktop platforms. It is a maintained fork of xterm.dart.
Requires Flutter
>=3.47.0andmaterial_ui.
Features #
- Works out of the box with mobile and desktop support.
- Fast rendering with glyph caching and speculative prediction overlay.
- Wide character support for CJK and emojis.
- Terminal color & scheme queries:
OSC 4/10/11/12,CSI ? 996 n,DEC Mode 2031, andDECRQM. - Frontend independent: the terminal core (
package:xterm_plus/core.dart) runs in pure Dart without Flutter.
Getting Started #
1. Add xterm_plus to your pubspec.yaml:
dependencies:
xterm_plus: ^4.1.0
2. Create the terminal and listen to output:
import 'package:xterm_plus/xterm_plus.dart';
final terminal = Terminal();
terminal.onOutput = (output) {
print('output: $output');
};
3. Attach the terminal to TerminalView:
TerminalView(terminal)
4. Write data to the terminal:
terminal.write('Hello, world!');
Examples #
- Local terminal example: https://github.com/lollipopkit/xterm.dart/blob/master/example/lib/main.dart
- SSH client example with dartssh2: https://github.com/lollipopkit/xterm.dart/blob/master/example/lib/ssh.dart
Issues & Contributions #
Please file feature requests and bugs at the issue tracker.
License #
This project is licensed under the MIT License.