GhosttyTerminalView constructor
const
GhosttyTerminalView({ - required GhosttyTerminalController controller,
- Key? key,
- bool autofocus = false,
- FocusNode? focusNode,
- Color backgroundColor = const Color(0xFF0A0F14),
- Color foregroundColor = const Color(0xFFE6EDF3),
- Color chromeColor = const Color(0xFF121A24),
- double fontSize = 14,
- double lineHeight = 1.35,
- String? fontFamily,
- List<String>? fontFamilyFallback,
- String? fontPackage,
- double letterSpacing = 0,
- double cellWidthScale = 1,
- GhosttyTerminalRendererMode renderer = GhosttyTerminalRendererMode.formatter,
- EdgeInsets padding = const EdgeInsets.all(12),
- GhosttyTerminalPalette palette = GhosttyTerminalPalette.xterm,
- Color cursorColor = const Color(0xFF9AD1C0),
- Color selectionColor = const Color(0x665DA9FF),
- Color hyperlinkColor = const Color(0xFF61AFEF),
- GhosttyTerminalCopyOptions copyOptions = const GhosttyTerminalCopyOptions(),
- GhosttyTerminalWordBoundaryPolicy wordBoundaryPolicy = const GhosttyTerminalWordBoundaryPolicy(),
- double selectionAutoScrollEdgeInset = 28,
- ValueChanged<GhosttyTerminalSelection?>? onSelectionChanged,
- ValueChanged<GhosttyTerminalSelectionContent<GhosttyTerminalSelection>?>? onSelectionContentChanged,
- Future<void> onCopySelection(
- String text
)?,
- Future<String?> onPasteRequest()?,
- Future<void> onOpenHyperlink(
- String uri
)?,
})
Implementation
const GhosttyTerminalView({
required this.controller,
super.key,
this.autofocus = false,
this.focusNode,
this.backgroundColor = const Color(0xFF0A0F14),
this.foregroundColor = const Color(0xFFE6EDF3),
this.chromeColor = const Color(0xFF121A24),
this.fontSize = 14,
this.lineHeight = 1.35,
this.fontFamily,
this.fontFamilyFallback,
this.fontPackage,
this.letterSpacing = 0,
this.cellWidthScale = 1,
this.renderer = GhosttyTerminalRendererMode.formatter,
this.padding = const EdgeInsets.all(12),
this.palette = GhosttyTerminalPalette.xterm,
this.cursorColor = const Color(0xFF9AD1C0),
this.selectionColor = const Color(0x665DA9FF),
this.hyperlinkColor = const Color(0xFF61AFEF),
this.copyOptions = const GhosttyTerminalCopyOptions(),
this.wordBoundaryPolicy = const GhosttyTerminalWordBoundaryPolicy(),
this.selectionAutoScrollEdgeInset = 28,
this.onSelectionChanged,
this.onSelectionContentChanged,
this.onCopySelection,
this.onPasteRequest,
this.onOpenHyperlink,
});