summaryrefslogtreecommitdiff
path: root/src/state.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-07-22 12:08:35 +0300
committerTimo Teräs <timo.teras@iki.fi>2011-07-22 12:08:35 +0300
commit6b24f3c3998a66b0e5baa4de89ed66f2b8688404 (patch)
treede0f574bf6d111e237867f5433e03728a241419f /src/state.c
parent384eada8aff3e9aca3cb1c289e194aee85cbd6c2 (diff)
downloadapk-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.c2
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);