Tea::Options
Program options
Class methods
WithColorProfile sets the color profile to use. Forces a specific color profile instead of auto-detecting.
WithContext sets the context for the program
WithEnvironment sets the environment variables for the program. This is useful when running in remote sessions (e.g. SSH).
WithFilter sets an event filter function. The filter can return any Msg, or nil to ignore the event.
WithInput sets the input reader (default: STDIN) Pass nil to disable input entirely
WithWindowSize sets the initial terminal window size. Useful for testing or non-interactive environments.
WithoutCatchPanics disables panic catching. If disabled, the terminal may be left in an unusable state after a panic.
WithoutRenderer disables the renderer. Output will be sent directly without rendering logic.
WithoutSignalHandler disables the signal handler. Useful if you want to handle signals yourself.