diff options
author | Timo Teräs <timo.teras@iki.fi> | 2011-07-22 12:08:35 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2011-07-22 12:08:35 +0300 |
commit | 6b24f3c3998a66b0e5baa4de89ed66f2b8688404 (patch) | |
tree | de0f574bf6d111e237867f5433e03728a241419f /src/state.c | |
parent | 384eada8aff3e9aca3cb1c289e194aee85cbd6c2 (diff) | |
download | apk-tools-6b24f3c3998a66b0e5baa4de89ed66f2b8688404.tar.gz apk-tools-6b24f3c3998a66b0e5baa4de89ed66f2b8688404.tar.bz2 apk-tools-6b24f3c3998a66b0e5baa4de89ed66f2b8688404.tar.xz apk-tools-6b24f3c3998a66b0e5baa4de89ed66f2b8688404.zip |
apk: improve indented printing
* fixup the help messages to align up properly
* refresh screen width on SIGWINCH
Diffstat (limited to 'src/state.c')
-rw-r--r-- | src/state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.c b/src/state.c index fc7ecb5..3889162 100644 --- a/src/state.c +++ b/src/state.c @@ -723,7 +723,7 @@ static void apk_count_change(struct apk_change *change, struct apk_stats *stats) static void apk_draw_progress(int percent) { - const int bar_width = (apk_screen_width - 7); + const int bar_width = apk_get_screen_width() - 7; int i; fprintf(stderr, "\e7%3i%% [", percent); |