ghostty_dart_xterm 0.1.1
ghostty_dart_xterm: ^0.1.1 copied to clipboard
API-compatible adapter for package:xterm 4.0.0 on top of ghostty_dart and ghostty_dart_flutter (libghostty-vt): same Terminal and TerminalView API.
Changelog #
0.1.1 - 2026-11-12 #
0.1.0 #
- Initial release.
- The public API of
package:xterm4.0.0 on libghostty-vt: thexterm.dart,core.dart,ui.dart,suggestion.dartandutils.dartlibraries with xterm's names, parameters and defaults.Terminalowns aVtTerminalController; output is parsed by libghostty-vt. xterm'sEscapeHandlermethods onTerminalwrite the equivalent sequence.Buffer,BufferLineandCellAnchorread the engine's active screen.TerminalViewdraws throughghostty_dart_flutter'sVtTerminalView;TerminalController(selection, highlights, pointer inputs), themes,TerminalStyleanddefaultTerminalShortcuts.- xterm's keytab, key and mouse handlers (
TerminalKey,defaultInputHandler,defaultMouseHandler), value types andSuggestionPortal, ported from xterm 4.0.0 (MIT,LICENSE.xterm). - Additions beyond xterm:
Terminal.dispose,Terminal.writeBytesandTerminal.onOutputBytes.
- Differs from xterm 4.0.0 where libghostty-vt does (keys typed into the
view, mouse rows, the inactive screen,
maxLines, anchors, OSC callbacks): every member's status is inCOMPATIBILITY.md, generated from both APIs, and the practical differences are inMIGRATING_FROM_XTERM.md. Not provided:zmodem.dart(planned), the debugger andEscapeParser. - xterm's own tests are ported under
test/compat/, and itsflutter_ptyanddartssh2examples compile and run with only the import changed (test/migration/).example/is xterm's mock-shell example.
