()
| 1443 | } |
| 1444 | |
| 1445 | fn experimental_tui_context_from_env() -> ExperimentalTuiContext { |
| 1446 | detect_experimental_tui_context( |
| 1447 | io::stdin().is_terminal(), |
| 1448 | io::stdout().is_terminal(), |
| 1449 | std::env::var("TERM").ok().as_deref(), |
| 1450 | ) |
| 1451 | } |
| 1452 | |
| 1453 | fn missing_terminal_tui_error(reason: &str) -> Option<String> { |
| 1454 | if reason.contains("stdin is not a terminal") || reason.contains("stdout is not a terminal") { |
no test coverage detected