TerminalView constructor

TerminalView(
  1. TerminalEngine engine, {
  2. Key? key,
  3. TerminalController? controller,
  4. TerminalTheme theme = TerminalTheme.defaults,
  5. TerminalStyle? textStyle,
  6. EdgeInsets? padding,
  7. double backgroundOpacity = 1.0,
  8. FocusNode? focusNode,
  9. bool autofocus = true,
  10. MouseCursor mouseCursor = SystemMouseCursors.text,
  11. bool readOnly = false,
  12. Duration cursorBlinkInterval = const Duration(milliseconds: 530),
  13. Duration cursorBlinkTimeout = const Duration(seconds: 5),
  14. Duration bellDuration = Duration.zero,
  15. Duration doubleClickThreshold = const Duration(milliseconds: 300),
  16. int scrollMultiplier = 3,
  17. int preeditBg = 0x282828,
  18. int preeditFg = 0xD8D8D8,
  19. bool preeditUnderline = true,
  20. Map<ShortcutActivator, Intent>? shortcuts,
  21. Map<Type, Action<Intent>>? actions,
  22. void onTapDown(
    1. TapDownDetails,
    2. CellOffset
    )?,
  23. void onTapUp(
    1. TapUpDetails,
    2. CellOffset
    )?,
  24. void onSecondaryTapDown(
    1. TapDownDetails,
    2. CellOffset
    )?,
  25. void onSecondaryTapUp(
    1. TapUpDetails,
    2. CellOffset
    )?,
  26. void onLinkActivate(
    1. String uri
    )?,
  27. bool primaryTapActivatesLink = false,
  28. void onBell()?,
  29. void onPtyResize(
    1. int columns,
    2. int rows
    )?,
  30. 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();