From 292bbd0bce87926157a58f2f1f6a73046a122130 Mon Sep 17 00:00:00 2001 From: Don Williams Date: Sun, 11 Jan 2026 02:43:22 -0500 Subject: Fixing resoltion prmpt --- scripts/lib_prompts.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/lib_prompts.sh b/scripts/lib_prompts.sh index ae493842..45772abb 100644 --- a/scripts/lib_prompts.sh +++ b/scripts/lib_prompts.sh @@ -119,9 +119,8 @@ prompt_resolution_choice() { echo "$YELLOW -- Enter 1. for monitor resolution less than 1440p (< 1440p)" echo "$YELLOW -- Enter 2. for monitor resolution equal to or higher than 1440p (≥ 1440p)" - echo -n "$CAT Enter the number of your choice (1 or 2): " - read choice - case $choice in + read -r -p "${CAT} Enter the number of your choice (1 or 2): " choice + case "$choice" in 1) echo "< 1440p"; return ;; 2) echo "≥ 1440p"; return ;; *) echo "${ERROR} Invalid choice. Please enter 1 for < 1440p or 2 for ≥ 1440p." ;; -- cgit v1.2.3