Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Latest commit

 

History

History
96 lines (64 loc) · 4.18 KB

README-EN.md

File metadata and controls

96 lines (64 loc) · 4.18 KB

termare_view

The full-platform terminal emulator, developed with Flutter, is an upper-layer component rendered by canvas and does not depend on any platform code.

Language: English | 简体中文

Terminal Sequence Support Document

This view is similar to the [xterm. Js] (https://github.com/xtermjs/xterm.js), is just an upper UI display component, you can use the terminal flow from the underlying operating system, or is connected to the SSH server terminal flow, only need to input to the components, can automatically parse rendering terminal terminal sequence.

Start using

introduce the project

This is a pure Flutter Package, so only needs to be introduced under YAML configuration file dependencies:

termare_view:
  git: https://github.com/termare/termare_view

Create the terminal controller

TermareController controller = TermareController(
  showBackgroundLine: true,
);

Use Widget

TermareView(
  controller: controller,
),

let the terminal display something

controller.write('hello termare_view');

The code is in Example.

A more detailed example

Why rewrite with Flutter instead of Android?

  • Write once, run everywhere.

  • Flutter is currently a very good cross-platform framework, and I think I can also use it to write a full-platform terminal emulator. From the previous generations of Android terminal emulators, It may be a long process, and I don't have much time, but I'll try to rewrite it.

  • i like to try.

For more reasons go to my personal article ->

Why does it not behave like an operating system native terminal emulator

It can only parse a portion of the terminal escape sequence so far, and the parsing time is limited by my code capability.

Help with development?

Terminal resources

Terminal emulators