パッケージ、リポジトリ、アプリカテゴリを検索

xterm のカバー
パッケージ詳細v4.0.0

xterm

xterm.dart は、モバイルおよびデスクトッププラットフォームをサポートする、Flutterアプリケーション向けの高速で機能豊富なターミナルエミュレーターです。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
24.2万
いいね数
239
Pub ポイント
140

パッケージをインストール

flutter pub add xterm

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

xterm.dart は、Flutter 向けの高性能ターミナルエミュレータであり、開発者がモバイルおよびデスクトップアプリケーションに完全に機能するターミナルインターフェースを埋め込むことを可能にします。ANSI エスケープシーケンス、キーボード入力処理、そしてクロスプラットフォームでの滑らかなテキストレンダリングをサポートしています。CLIツール、開発環境、またはリモートシェルクライアントへの統合を目的として設計されており、Flutterアプリ内でのシームレスなターミナル体験を提供します。このパッケージは積極的にメンテナンスされており、Android、iOS、Web、macOS、Windows、Linuxと互換性があります。

用途

  • コードエディタアプリにターミナルを埋め込む
  • リモート SSH クライアントの構築
  • インタラクティブなコマンドラインツールの作成
  • 開発者コンソールインターフェースの開発
  • デスクトップアプリケーションにおけるターミナルベースのワークフローのサポート

主な機能

  • 完全な ANSI エスケープシーケンスのサポート
  • クロスプラットフォーム互換性
  • 効率的なテキストレンダリング
  • キーボード入力の処理
  • カスタマイズ可能なテーマ
  • スクロールバックと行の折り返し

適している対象

  • ターミナルベースのアプリを構築するFlutter開発者
  • 埋め込みシェルアクセスを必要とするツール
  • コマンドラインの使い方を教える教育用アプリ
  • リモート開発環境
  • CLI ツールの統合

注意事項

  • ターミナルプロトコルの理解が必要です
  • UIの一貫性を確保するために追加のスタイル設定が必要になる場合があります
  • パフォーマンスはターミナルコンテンツの複雑さに依存します
  • 制限された組み込みコマンド実行(外部プロセスが必要)
  • 最適化されていないと、重い端末エミュレーションには向かない

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

xterm.dart

Actions Package version GitHub repo size GitHub issues GitHub pull requests

xterm.dart is a fast and fully-featured terminal emulator for Flutter applications, with support for mobile and desktop platforms.

This package requires Flutter version >=3.0.0

Screenshots

Features

  • 📦 Works out of the box No special configuration required.
  • 🚀 Fast Renders at 60fps.
  • 😀 Wide character support Supports CJK and emojis.
  • ✂️ Customizable
  • ✔ Frontend independent: The terminal core can work without flutter frontend.

What's new in 3.0.0:

  • 📱 Enhanced support for mobile platforms.
  • ⌨️ Integrates with Flutter's shortcut system.
  • 🎨 Allows changing theme at runtime.
  • 💪 Better performance. No tree rebuilds anymore.
  • 🈂️ Works with IMEs.

Getting Started

1. Add this to your package's pubspec.yaml file:

dependencies:
  ...
  xterm: ^3.2.6

2. Create the terminal:

import 'package:xterm/xterm.dart';
...
terminal = Terminal();

Listen to user interaction with the terminal by simply adding a onOutput callback:

terminal = Terminal();

terminal.onOutput = (output) {
  print('output: $output');
}

3. Create the view, attach the terminal to the view:

import 'package:xterm/flutter.dart';
...
child: TerminalView(terminal),

4. Write something to the terminal:

terminal.write('Hello, world!');

Done!

More examples

  • Write a simple terminal in ~100 lines of code: https://github.com/TerminalStudio/xterm.dart/blob/master/example/lib/main.dart

  • Write a SSH client in ~100 lines of code with dartssh2: https://github.com/TerminalStudio/xterm.dart/blob/master/example/lib/ssh.dart

For a complete project built with xterm.dart, check out TerminalStudio.

Features and bugs

Please file feature requests and bugs at the issue tracker.

Contributions are always welcome!

License

This project is licensed under an MIT license.

カテゴリー

依存関係

依存関係一覧 5 件

ソースリポジトリ

このパッケージを使用しているプロジェクト