From d8d82215561305cb7af0a33d7810cbb9cadb2cea Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Fri, 22 Dec 2006 07:11:20 +0000 Subject: Modified front end output routines to accept a "padding' setting, which pads any statement with ' ' until the size of the terminal. The rationale is that, when a log message is emitted during progress bar display, the terminal is artifacted. This prevents that messiness. --- src/pacman/trans.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/pacman/trans.c') diff --git a/src/pacman/trans.c b/src/pacman/trans.c index 1b9295e1..ea6d8cd6 100644 --- a/src/pacman/trans.c +++ b/src/pacman/trans.c @@ -295,6 +295,12 @@ void cb_trans_progress(unsigned char event, char *pkgname, int percent, int howm return; } + if(percent == 0) { + set_output_padding(1); /* turn on output padding with ' ' */ + } else if(percent == 100) { + set_output_padding(0); /* shut it off again */ + } + if (!pkgname) return; if (percent > 100) -- cgit v1.2.3