struct

Term2::ProgramOption

Inherits Struct < Value < Object

Base type for program configuration options.

Program options are applied when creating a Program to configure terminal behavior, input/output handling, and UI features.

options = Term2::ProgramOptions.new(
  Term2::WithAltScreen.new,
  Term2::WithMouseAllMotion.new,
  Term2::WithReportFocus.new
)
program = Term2::Program.new(app, options)

Constructors

Instance methods

apply(program : Program) : Nil

Apply this option to a program instance.

Source
initialize
Source