Commit e8522411 authored by Antoine Fontaine's avatar Antoine Fontaine Committed by Timo Teräs

lower min-width to 25 columns

Some screen size are quite small. For example, the default phosh
terminal is less than 50 character wide on Pinephone. This lowers the minimum
loading bar size to 25 characters.

For comparison, 25 character wide is just as wide as "apk add firefox
linux-lts" without the quotes.

Here's a bad picture to illustrate the result
parent a9916c2d
Pipeline #10338 failed with stage
in 55 seconds
......@@ -42,7 +42,7 @@ int apk_get_screen_width(void)
if (apk_screen_width == 0) {
apk_screen_width = 50;
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &w) == 0 &&
w.ws_col > 50)
w.ws_col > 25)
apk_screen_width = w.ws_col;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment