ProgramOptions constructor

const ProgramOptions({
  1. bool altScreen = true,
  2. bool mouse = false,
  3. MouseMode mouseMode = MouseMode.none,
  4. int fps = 60,
  5. bool frameTick = true,
  6. bool hideCursor = true,
  7. bool bracketedPaste = false,
  8. Duration inputTimeout = const Duration(milliseconds: 50),
  9. bool catchPanics = true,
  10. int maxStackFrames = 10,
  11. MessageFilter? filter,
  12. bool signalHandlers = true,
  13. bool sendInterrupt = true,
  14. String? startupTitle,
  15. Stream<List<int>>? input,
  16. void output(
    1. String
    )?,
  17. bool disableRenderer = false,
  18. bool ansiCompress = false,
  19. bool useUltravioletRenderer = true,
  20. bool useUltravioletInputDecoder = true,
  21. Future<void>? cancelSignal,
  22. List<String>? environment,
  23. bool inputTTY = false,
  24. ({bool useBackspace, bool useTabs})? movementCapsOverride,
  25. bool shutdownSharedStdinOnExit = true,
  26. Duration metricsInterval = const Duration(seconds: 1),
})

Implementation

const ProgramOptions({
  this.altScreen = true,
  this.mouse = false,
  this.mouseMode = MouseMode.none,
  this.fps = 60,
  this.frameTick = true,
  this.hideCursor = true,
  this.bracketedPaste = false,
  this.inputTimeout = const Duration(milliseconds: 50),
  this.catchPanics = true,
  this.maxStackFrames = 10,
  this.filter,
  this.signalHandlers = true,
  this.sendInterrupt = true,
  this.startupTitle,
  this.input,
  this.output,
  this.disableRenderer = false,
  this.ansiCompress = false,
  this.useUltravioletRenderer = true,
  this.useUltravioletInputDecoder = true,
  this.cancelSignal,
  this.environment,
  this.inputTTY = false,
  this.movementCapsOverride,
  this.shutdownSharedStdinOnExit = true,
  this.metricsInterval = const Duration(seconds: 1),
}) : assert(fps >= 1 && fps <= 120, 'fps must be between 1 and 120');