pub fn init_with_options(
options: TerminalOptions,
screen_options: ScreenOptions,
) -> DefaultTerminalExpand description
Initialize a terminal with explicit options and panic on failure.
This is the infallible convenience wrapper around
try_init_with_options.
§Parameters
options- widget-library terminal options, including the viewport.screen_options- uncurses screen defaults to apply during screen init.
§Returns
A ready-to-draw DefaultTerminal configured with the supplied options.
§Panics
Panics with failed to initialize terminal if try_init_with_options
returns an error.
§Usage note
Use the fallible form in libraries or in applications that need custom error
reporting. Pair a successful call with restore or try_restore.