xterm2
5.5.0, released today by sofluffy.io
A Flutter terminal emulator widget with fast rendering and full VT/xterm support.
WASM-ready
What it does
xterm2 provides a TerminalView widget that renders a terminal buffer and a Terminal model that parses escape sequences. It supports mobile, desktop, and web, and can be used standalone or with a custom frontend.
AI-written summary of version 5.5.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need an embedded terminal in a Flutter app
- You require fast 60fps rendering and wide character support
- You want to customize the terminal theme or paint extensions
- You need a pure‑Dart terminal core for non‑Flutter use
Skip it when
- You only need a simple command line interface without a GUI
- You are targeting very old Flutter versions (<3.27)
- You need a terminal that integrates deeply with native terminal APIs
Strengths
- Fast rendering at 60fps
- Full VT/xterm compatibility
- Supports IMEs and mobile shortcuts
- Customizable theme and paint extensions
Weaknesses
- Requires Flutter 3.27 or newer
- No built‑in SSH or networking support (needs external packages)
- Limited to terminal emulation, not a full shell
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 7
Add dependency, create Terminal(), attach to TerminalView, set onOutput if needed
import 'package:xterm2/xterm.dart';
import 'package:xterm2/flutter.dart';
final terminal = Terminal();
Widget build(BuildContext context) => TerminalView(terminal);Alternatives
Packages that do the same job and could replace xterm2.
Works with
Packages commonly used together with xterm2: ones it builds on, ones built on it, and its own family.
- convertxterm2 depends on itEncoders and decoders for converting between different data representations.
- charactersxterm2 depends on itUnicode and grapheme cluster aware string manipulation operations for Dart.
- equatablexterm2 depends on itProvides value‑based equality for Dart objects without manual == and hashCode.
- quiverxterm2 depends on itA set of utility libraries for Dart containing collections, async tools, and testing helpers.