Sfoglia il codice sorgente

Scale to screen size

Bob Mottram 7 anni fa
parent
commit
8cc85edea8
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4
    1
      src/freedombone-controlpanel

+ 4
- 1
src/freedombone-controlpanel Vedi File

@@ -304,8 +304,11 @@ function show_domains {
304 304
         fi
305 305
     fi
306 306
 
307
+    width=$(tput cols)
308
+    height=$(tput lines)
309
+
307 310
     # shellcheck disable=SC2068
308
-    dialog --backtitle $"Freedombone Control Panel" --title $"Domains" --menu $"You can use shift+cursors to select text" 28 100 28 "${W[@]}" 3>&2 2>&1 1>&3
311
+    dialog --backtitle $"Freedombone Control Panel" --title $"Domains" --menu $"" $((height-5)) $((width-5)) $((height-5)) "${W[@]}" 3>&2 2>&1 1>&3
309 312
 }
310 313
 
311 314
 function show_domains_old {