पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

xterm कवर
पैकेज विवरणv4.0.0

xterm

xterm.dart एक तेज़ और पूरी तरह से विकसित टर्मिनल एमुलेटर है जो फ्लटर ऐप्लिकेशन के लिए है, मोबाइल और डेस्कटॉप प्लेटफॉर्म का समर्थन करता है।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
2.4 लाख
लाइक
239
Pub अंक
140

पैकेज इंस्टॉल करें

flutter pub add xterm

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

xterm.dart एक उच्च प्रदर्शन टर्मिनल एमुलेटर है, जो Flutter के लिए है, जिससे डेवलपर्स मोबाइल और डेस्कटॉप एप्लिकेशन में पूरी तरह से कार्यात्मक टर्मिनल इंटरफ़ेस एम्बेड कर सकते हैं। यह ANSI एस्केप सीक्वेंस, कीबोर्ड इनपुट हैंडलिंग, और प्लेटफ़ॉर्म के आधार पर चलने वाले चित्रण के लिए समर्थन करता है। CLI टूल्स, डेवलपमेंट एनवायरनमेंट या रिमोट शेल क्लाइंट में एम्बेड करने के लिए डिज़ाइन किया गया है, जो Flutter एप्लिकेशन में एक निरंतर टर्मिनल अनुभव प्रदान करता है। पैकेज सक्रिय रूप से बनाए रखा जाता है और Android, iOS, Web, macOS, Windows और Linux के साथ संगत है।

उपयोग

  • कोड संपादक एप में टर्मिनल एम्बेड करना
  • रिमोट एसएसएच क्लाइंट बनाना
  • इंटरैक्टिव कमांड-लाइन उपकरण बनाना
  • डेवलपर कंसोल इंटरफेस विकसित करना
  • डेस्कटॉप ऐप्स में टर्मिनल-आधारित वर्कफ़्लो का समर्थन करना

मुख्य विशेषताएँ

  • पूर्ण ANSI एस्केप सीक्वेंस समर्थन
  • क्रॉस-प्लेटफॉर्म संगतता
  • प्रभावी पाठ रेंडरिंग
  • कीबोर्ड इनपुट हैंडलिंग
  • कस्टमाइज़ किए गए थीम
  • स्क्रॉलबैक और लाइन व्रैपिंग

इनके लिए उपयुक्त

  • टर्मिनल-आधारित ऐप्स बनाने वाले Flutter विकासकर्ता
  • एम्बेडेड शेल एक्सेस की आवश्यकता वाले टूल्स
  • आदेश-पंक्ति के उपयोग सिखाने वाले शैक्षिक एप्प्स
  • दूरस्थ विकास पर्यावरण
  • CLI टूल इंटीग्रेशन

विचार योग्य बातें

  • टर्मिनल प्रोटोकॉल के बारे में समझ आवश्यक है
  • यूआई सुसंगतता के लिए अतिरिक्त स्टाइलिंग की आवश्यकता हो सकती है
  • प्रदर्शन टर्मिनल सामग्री की जटिलता पर निर्भर करता है
  • सीमित आंतरिक कमांड निष्पादन (बाहरी प्रक्रिया की आवश्यकता होती है)
  • बिना अनुकूलन के भारी टर्मिनल उत्पादन के लिए उपयुक्त नहीं है

मूल 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 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट