TerminalView constructor
TerminalView(
- TerminalEngine engine, {
- Key? key,
- TerminalController? controller,
- TerminalTheme theme = TerminalTheme.defaults,
- TerminalStyle? textStyle,
- EdgeInsets? padding,
- double backgroundOpacity = 1.0,
- FocusNode? focusNode,
- bool autofocus = true,
- MouseCursor mouseCursor = SystemMouseCursors.text,
- bool readOnly = false,
- Duration cursorBlinkInterval = const Duration(milliseconds: 530),
- Duration cursorBlinkTimeout = const Duration(seconds: 5),
- Duration bellDuration = Duration.zero,
- Duration doubleClickThreshold = const Duration(milliseconds: 300),
- int scrollMultiplier = 3,
- int preeditBg = 0x282828,
- int preeditFg = 0xD8D8D8,
- bool preeditUnderline = true,
- Map<
ShortcutActivator, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> > - void onTapDown()?,
- void onTapUp()?,
- void onSecondaryTapDown()?,
- void onSecondaryTapUp()?,
- void onLinkActivate(
- String uri
- bool primaryTapActivatesLink = false,
- void onBell()?,
- void onPtyResize()?,
- List<
TerminalLinkProvider> ? linkProviders,
Implementation
TerminalView(
this.engine, {
super.key,
this.controller,
this.theme = TerminalTheme.defaults,
TerminalStyle? textStyle,
this.padding,
this.backgroundOpacity = 1.0,
this.focusNode,
this.autofocus = true,
this.mouseCursor = SystemMouseCursors.text,
this.readOnly = false,
this.cursorBlinkInterval = const Duration(milliseconds: 530),
this.cursorBlinkTimeout = const Duration(seconds: 5),
this.bellDuration = Duration.zero,
this.doubleClickThreshold = const Duration(milliseconds: 300),
this.scrollMultiplier = 3,
this.preeditBg = 0x282828,
this.preeditFg = 0xD8D8D8,
this.preeditUnderline = true,
this.shortcuts,
this.actions,
this.onTapDown,
this.onTapUp,
this.onSecondaryTapDown,
this.onSecondaryTapUp,
this.onLinkActivate,
this.primaryTapActivatesLink = false,
this.onBell,
this.onPtyResize,
List<TerminalLinkProvider>? linkProviders,
}) : linkProviders = linkProviders ?? _defaultLinkProviders,
textStyle = textStyle ?? TerminalStyle.defaults();