Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorNinchester <5041877+ninchester@users.noreply.github.com>2021-03-20 21:48:34 +0100
committerNinchester <5041877+ninchester@users.noreply.github.com>2021-03-20 21:48:34 +0100
commit0318125a7b70114531951da300b06f47f427b89f (patch)
tree0c7d6b9de95d98407a1486ee57cc28b167017d2d /archinstall
parent9f87b6963d6b195c35891366cbd5421324a593e3 (diff)
Add margin at the bottom
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/user_interaction.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index b3baebf8..25ca71f0 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -29,8 +29,8 @@ def get_password(prompt="Enter a password: "):
def print_large_list(options, padding=5, margin_bottom=0, separator=': '):
longest_line = len(str(len(options))) + len(separator) + get_longest_option(options) + padding
- num_of_columns = get_terminal_width() // longest_line
- max_options_in_cells = num_of_columns * (get_terminal_height()-margin_bottom)
+ max_num_of_columns = get_terminal_width() // longest_line
+ max_options_in_cells = max_num_of_columns * (get_terminal_height()-margin_bottom)
if (len(options) > max_options_in_cells):
for index, option in enumerate(options):
@@ -294,7 +294,7 @@ def select_mirror_regions(mirrors, show_top_mirrors=True):
selected_mirrors = {}
if len(regions) >= 1:
- print_large_list(regions)
+ print_large_list(regions, margin_bottom=4)
print(' -- You can enter ? or help to search for more regions --')
print(' -- You can skip this step by leaving the option blank --')