From: Fabian Vogt Date: Tue, 2 Jul 2024 14:15:50 +0000 (+0200) Subject: firstboot: Make the option list fit 80 columns X-Git-Tag: v257-rc1~949 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=355fbedf1f7a19b00f2802ececd9771aafae6232;p=thirdparty%2Fsystemd.git firstboot: Make the option list fit 80 columns 22 characters in three colums + overhead slightly exceeds the available width on terminals with 80 columns, causing each row to wrap to two lines. Reduce the item width to 20 to fit even the list of ~600 timezones. --- diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c index 6afabef4307..92b0289859a 100644 --- a/src/firstboot/firstboot.c +++ b/src/firstboot/firstboot.c @@ -215,7 +215,7 @@ static int prompt_loop(const char *text, char **l, unsigned percentage, bool (*i } if (streq(p, "list")) { - r = show_menu(l, 3, 22, percentage); + r = show_menu(l, 3, 20, percentage); if (r < 0) return r;