clean TUI core

- Stripped forced-scrollbar hack from _menu and _checklist
- Eliminated TUI_ANCHO_REFORZADO overflow across 9 files
- Removed redundant _inst() function globally
- Added dynamic list height calculation for checklists
- Introduced Desktop & Display menu (Option 12)
- Fixed non-free-firmware false positive in repo detection
- Restored terminal transparency for apt/vainfo output"
This commit is contained in:
stornic56
2026-07-11 22:05:35 -05:00
committed by GitHub
parent 2ebb33460c
commit f043c130a8
27 changed files with 454 additions and 331 deletions
+17 -16
View File
@@ -21,26 +21,27 @@ _cat_dev() {
local jdk_desc; jdk_desc=$(_any_jdk_installed_desc)
local jdk_state; jdk_state=$(_any_jdk_state)
items+=(
"apache2" "Apache web server$(_inst apache2)" "$apache_state"
"build-essential" "C/C++ build tools (gcc, make)$(_inst build-essential)" "$build_state"
"certbot" "Let's Encrypt TLS certificates$(_inst certbot)" "$certbot_state"
"docker" "Docker + docker-compose$(_inst docker.io)" "$docker_state"
"mariadb-server" "MariaDB database server$(_inst mariadb-server)" "$mariadb_state"
"netcat-openbsd" "TCP/IP networking utility$(_inst netcat-openbsd)" "$netcat_state"
"nginx" "Nginx web server$(_inst nginx)" "$nginx_state"
"openssh-server" "SSH server$(_inst openssh-server)" "$ssh_state"
"openssl" "OpenSSL cryptography toolkit$(_inst openssl)" "$openssl_state"
"postgresql" "PostgreSQL database server$(_inst postgresql)" "$pg_state"
"python3-pip" "Python 3 pip + venv + dev$(_inst python3-pip)" "$pip_state"
"redis-server" "Redis key-value store$(_inst redis-server)" "$redis_state"
"sqlite3" "SQLite database engine$(_inst sqlite3)" "$sqlite_state"
"jellyfin" "Jellyfin Media Server (Web GUI on port 8096)$(_inst jellyfin)" OFF
"apache2" "Apache web server" "$apache_state"
"build-essential" "C/C++ build tools (gcc, make)" "$build_state"
"certbot" "Let's Encrypt TLS certificates" "$certbot_state"
"docker" "Docker + docker-compose" "$docker_state"
"mariadb-server" "MariaDB database server" "$mariadb_state"
"netcat-openbsd" "TCP/IP networking utility" "$netcat_state"
"nginx" "Nginx web server" "$nginx_state"
"openssh-server" "SSH server" "$ssh_state"
"openssl" "OpenSSL cryptography toolkit" "$openssl_state"
"postgresql" "PostgreSQL database server" "$pg_state"
"python3-pip" "Python 3 pip + venv + dev" "$pip_state"
"redis-server" "Redis key-value store" "$redis_state"
"sqlite3" "SQLite database engine" "$sqlite_state"
"jellyfin" "Jellyfin Media Server (Web GUI on port 8096)" OFF
"openjdk-dev-env" "Adoptium Temurin JDK (17, 21, 25 LTS)${jdk_desc}" "${jdk_state}"
)
local TUI_ANCHO_REFORZADO=$((TUI_ANCHO + 6))
local item_count=${#items[@]}
local lista_alto=$((item_count > TUI_ALTO_LISTA ? TUI_ALTO_LISTA : item_count))
local choices
choices=$(_checklist "Development & Servers" "Select development tools and servers${SCROLL_HINT}:" $TUI_ALTO $TUI_ANCHO_REFORZADO $TUI_ALTO_LISTA \
choices=$(_checklist "Development & Servers" "Select development tools and servers${SCROLL_HINT}:" $TUI_ALTO $TUI_ANCHO $lista_alto \
"${items[@]}" \
)
clear