瀏覽代碼

Scale to screen size

Bob Mottram 7 年之前
父節點
當前提交
8cc85edea8
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      src/freedombone-controlpanel

+ 4
- 1
src/freedombone-controlpanel 查看文件

304
         fi
304
         fi
305
     fi
305
     fi
306
 
306
 
307
+    width=$(tput cols)
308
+    height=$(tput lines)
309
+
307
     # shellcheck disable=SC2068
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
 function show_domains_old {
314
 function show_domains_old {