diff --git a/scripts/install.sh b/scripts/install.sh index 586ac93..7ef5301 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -560,6 +560,24 @@ screen_teams() { # --- Screen: Review --- REVIEW_RESULT="" +# grid_2col — lay items out in two column-major columns +# (left column filled top-to-bottom first). Plain text cells (no ANSI) so the +# width padding stays correct. +grid_2col() { + local w="$1"; shift + local n=$# r rows left right out="" + (( n==0 )) && { printf ' %snone%s\n' "$C_DIM" "$C_RESET"; return; } + local items=("$@") + rows=$(( (n + 1) / 2 )) + for (( r=0; r