xterm_plus

Package version GitHub repo size GitHub issues GitHub pull requests

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.0 and material_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, and DECRQM.
  • 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

Issues & Contributions

Please file feature requests and bugs at the issue tracker.

License

This project is licensed under the MIT License.