diff options
| author | Don Williams <don.e.williams@gmail.com> | 2026-01-11 02:46:11 -0500 |
|---|---|---|
| committer | Don Williams <don.e.williams@gmail.com> | 2026-01-11 02:46:11 -0500 |
| commit | bf494381829c904425b8bda46b087572b09e7ca4 (patch) | |
| tree | d708abd4bb2d49d68ce2ea9a0e613b2d634c0c95 /scripts | |
| parent | 27dae2e40ac4fa27cc55a7fa90927fb47a641a85 (diff) | |
Fixed banner
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/lib_prompts.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/lib_prompts.sh b/scripts/lib_prompts.sh index ce75462c..6f426b53 100644 --- a/scripts/lib_prompts.sh +++ b/scripts/lib_prompts.sh @@ -115,7 +115,11 @@ prompt_resolution_choice() { echo " 1) < 1440p (lower DPI; smaller displays)" echo " 2) ≥ 1440p (default; 1440p/2k/4k)" - read -r -p "${CAT} Enter the number of your choice (1 or 2): " choice + if ! read -r -p "${CAT} Enter the number of your choice (1 or 2): " choice </dev/tty; then + echo "${ERROR} Unable to read input (tty unavailable)." + continue + fi + echo "${INFO:-[INFO]} You entered: '$choice'" case "$choice" in 1) echo "< 1440p"; return ;; 2) echo "≥ 1440p"; return ;; |
