Skip to main content

resolve_width_for

Function resolve_width_for 

Source
pub fn resolve_width_for(
    explicit_w: Option<u32>,
    use_t: bool,
    columns_env: Option<u32>,
    is_tty: bool,
    mode: CompatibilityMode,
) -> u32
Available on crate feature terminal-width only.
Expand description

Re-export of [width::resolve_width] for the rusty-figlet binary’s CLI wiring path. Library consumers that need to resolve a width budget under the same precedence ladder may call this helper directly. Gated by the terminal-width leaf because the underlying lookup depends on terminal_size.