Skip to main content

TUI_TTY_REFUSAL_REASON

Constant TUI_TTY_REFUSAL_REASON 

Source
pub const TUI_TTY_REFUSAL_REASON: &str = "ign tui requires a terminal (stdout is not a TTY)";
Expand description

The ign tui TTY-refusal reason (06-07). The InvalidInput hint is content-addressed off this exact string: the frozen taxonomy keeps ONE usage-input variant (no hint field, no new variant), but the TTY refusal’s fix is terminal-related, not --file/stdin — CoreError::hint special-cases this one reason while every other raise site keeps the resource-put default. Construct via CoreError::tui_tty_refusal so the reason/hint pair cannot drift.