Skip to content
pubscout

xterm

4.0.0, released 3 years ago by terminal.studio

A fast and fully-featured terminal emulator widget for Flutter applications.

WASM-readyQuiet but busy
$ flutter pub add xterm
Source repository

What it does

Provides a terminal emulator widget and core engine that supports mobile and desktop platforms. It renders text at 60fps, handles wide characters like CJK and emojis, and integrates with Flutter's shortcut and input systems.

AI-written summary of version 4.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to build an SSH client, local shell, or serial monitor inside a Flutter app.
  • You require a fast terminal rendering engine that works on mobile and desktop.

Skip it when

  • You are looking for a general-purpose webview or code editor component rather than a terminal emulator.

Strengths

  • Works out of the box with no special configuration.
  • Frontend independent (terminal core can work without the Flutter frontend).
  • Supports IMEs, custom themes, and wide characters (CJK/emojis).

Weaknesses

  • Limited to terminal emulation functionality.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
5

Requires Flutter >=3.0.0. Just add the dependency to pubspec.yaml and instantiate Terminal and TerminalView.

import 'package:xterm/xterm.dart';
import 'package:xterm/flutter.dart';

final terminal = Terminal();

// In your widget build method:
TerminalView(terminal)

Alternatives

Packages that do the same job and could replace xterm.

  • flterm

    Flutter terminal widget backed by Ghostty's libghostty-vt engine.

  • uiblock

    Easily block or unblock the UI with loading states in Flutter apps.

Works with

Packages commonly used together with xterm: ones it builds on, ones built on it, and its own family.