ProgramOptions constructor
const
ProgramOptions({
- bool altScreen = true,
- bool mouse = false,
- MouseMode mouseMode = MouseMode.none,
- int fps = 60,
- bool frameTick = true,
- bool hideCursor = true,
- bool bracketedPaste = false,
- Duration inputTimeout = const Duration(milliseconds: 50),
- bool catchPanics = true,
- int maxStackFrames = 10,
- MessageFilter? filter,
- bool signalHandlers = true,
- bool sendInterrupt = true,
- String? startupTitle,
- Stream<
List< ? input,int> > - void output()?,
- bool disableRenderer = false,
- bool ansiCompress = false,
- bool useUltravioletRenderer = true,
- bool useUltravioletInputDecoder = true,
- Future<
void> ? cancelSignal, - List<
String> ? environment, - bool inputTTY = false,
- ({bool useBackspace, bool useTabs})? movementCapsOverride,
- 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');