From d0da070de2b6f84e63fcd60176e8320d639f0b11 Mon Sep 17 00:00:00 2001 From: "Eric T. Johnson" Date: Wed, 16 Oct 2024 12:02:14 -0400 Subject: [PATCH] Force select to use one column on wide terminals --- job_scripts/slurm/chainslurm-menu.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/job_scripts/slurm/chainslurm-menu.sh b/job_scripts/slurm/chainslurm-menu.sh index 853f64a..86a5e45 100755 --- a/job_scripts/slurm/chainslurm-menu.sh +++ b/job_scripts/slurm/chainslurm-menu.sh @@ -44,6 +44,8 @@ if [[ $job_count -gt 0 ]]; then # (${#job_count} gets the length of the string "$job_count") printf '%*s %s\n' ${#job_count} '' "$header" PS3='> ' + # override the terminal width so select displays all options in one column + COLUMNS=1 select line in "${job_lines[@]}"; do # If the user entered a valid option number, the full contents of that line # will be placed in $line. Otherwise, $line will be empty and the entered