[Extension Request] flet-xterm — Terminal emulator control wrapping xterm.dart #6669
Unanswered
Nwokike
asked this question in
Extensions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Use Case
I'm building a mobile cloud compute client that executes Python code on remote runtimes. The app needs a proper terminal component to display output from:
pip install,apt-get) with progress barstqdmprogressCurrently I'm using
ft.Text+TextSpanwithrich.AnsiDecoderfor basic ANSI parsing, but this approach cannot handle cursor movement, in-place line overwrites, screen clearing, or 256-color palettes. Progress bars frompiprender as hundreds of separate lines instead of updating in-place.Proposed Solution
Wrap
xterm.dart(647★, v4.0.0) as a Flet extension packageflet-xterm.xterm.dart is a mature, 60fps Flutter terminal emulator supporting full VT100/xterm emulation, used by RustDesk and kubenav. It works on all platforms Flet targets (Android, iOS, Web, Desktop).
Python API sketch:
Why This Should Be Official
xterm.dartmake this a clean implementation following the same pattern asflet-videoandflet-webview.References
Beta Was this translation helpful? Give feedback.
All reactions