ui library
The Flutter widgets of package:xterm 4.0.0 (TerminalView,
TerminalController, themes and styles), drawn by
ghostty_dart_flutter: the same names as xterm's
package:xterm/ui.dart.
TerminalView(terminal, controller: controller, autofocus: true)
xterm's debugger (TerminalDebugger, TerminalDebuggerView) is not
provided: it is built on xterm's Dart escape parser (ADR 0013).
COMPATIBILITY.md lists every xterm member and its status.
Classes
- KeyboardVisibilty
- Calls onKeyboardShow and onKeyboardHide when the soft keyboard appears or disappears (the view's bottom inset changes). The name's typo is xterm's API.
- KeyboardVisibiltyState
- The state of a KeyboardVisibilty: observes the window's metrics.
- PointerInputs
- A set of PointerInputs.
- TerminalController
-
The selection, highlights and pointer settings of a
TerminalView. - TerminalHighlight
-
A coloured range of a terminal, made by TerminalController.highlight;
disposeremoves it. - TerminalStyle
-
The font of a
TerminalView: size, line height, family and fallbacks. - TerminalTheme
-
The colours of a
TerminalView: the cursor, the selection, the default foreground and background, the 16 ANSI colours, and three search-hit colours that xterm 4.0.0 never paints (kept for the API). - TerminalThemes
- xterm's built-in TerminalThemes.
- TerminalView
-
A widget that shows a Terminal and sends the user's keys, text and
mouse input to it: xterm's
TerminalView, drawn byghostty_dart_flutter. - TerminalViewState
-
The state of a TerminalView: shows and hides the soft keyboard and
tells where the cursor is. Reach it with a
GlobalKey<TerminalViewState>.
Enums
- PointerInput
-
A kind of pointer event that
TerminalViewmay report to the program while it tracks the mouse (seeTerminalController.setPointerInputs). - SelectionMode
- How a selection covers the cells between its two ends.
- TerminalCursorType
-
The shape
TerminalViewdraws the cursor in.
Properties
-
defaultTerminalShortcuts
→ Map<
ShortcutActivator, Intent> -
xterm's default shortcuts of
TerminalViewfor the current platform: Ctrl+Shift+C copies, Ctrl+V pastes and Ctrl+A selects all on Android, Fuchsia, Linux and Windows; Cmd+C, Cmd+V and Cmd+A on iOS and macOS.no setter