aboutsummaryrefslogtreecommitdiffstats
path: root/gadgets/gdbar.c
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-12-20 03:07:25 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-12-20 03:07:25 +0000
commitc837408b3f495cf294f5b8c11c5a77bb1945fa75 (patch)
tree273f6c0581949cc8dab75770c4401e39425d31b4 /gadgets/gdbar.c
parent3e10817e2c4cae7038d738e4cd5d00074efb59a3 (diff)
downloaddzen-c837408b3f495cf294f5b8c11c5a77bb1945fa75.tar.gz
dzen-c837408b3f495cf294f5b8c11c5a77bb1945fa75.zip
new syntax for ^r() and ^ro()
gcpubar and gdbar fixes git-svn-id: http://dzen.googlecode.com/svn/trunk@173 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'gadgets/gdbar.c')
-rw-r--r--gadgets/gdbar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gadgets/gdbar.c b/gadgets/gdbar.c
index f905542..89cd7ec 100644
--- a/gadgets/gdbar.c
+++ b/gadgets/gdbar.c
@@ -52,13 +52,13 @@ pbar(const char* label, double perc, int maxc, int height, int pnl, int mode) {
rp = (int)perc;
if(mode)
- printf("%s %3d%% ^ib(1)^fg(%s)^ro(%dx%d)^p(%d)^fg(%s)^r(%dx%d)^p(%d)^ib(0)^fg()%s",
+ printf("%s%3d%% ^ib(1)^fg(%s)^ro(%dx%d)^p(%d)^fg(%s)^r(%dx%d)^p(%d)^ib(0)^fg()%s",
label ? label : "", rp,
bg, (int)maxc, height, -1*(maxc-1),
fg, (int)l, height-2,
maxc-(int)l-1, pnl ? "\n" : "");
else
- printf("%s %3d%% ^fg(%s)^r(%dx%d)^fg(%s)^r(%dx%d)^fg()%s",
+ printf("%s%3d%% ^fg(%s)^r(%dx%d)^fg(%s)^r(%dx%d)^fg()%s",
label ? label : "", rp,
fg, (int)l, height,
bg, maxc-(int)l, height,