aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2003-10-10 01:16:08 +0000
committerJudd Vinet <judd@archlinux.org>2003-10-10 01:16:08 +0000
commit065e944539ec9b527fa163317c0a633c872c809b (patch)
treeae6bc4cb4bc64bc1d1a2371b1847c9a5860f5c41 /functions
parent7f4117b05f9e4730657779ec7d4b3b08ba12616c (diff)
downloadinitscripts-065e944539ec9b527fa163317c0a633c872c809b.tar.xz
a little formatting improvement
Diffstat (limited to 'functions')
-rw-r--r--functions14
1 files changed, 7 insertions, 7 deletions
diff --git a/functions b/functions
index ab88827..8425b2e 100644
--- a/functions
+++ b/functions
@@ -3,7 +3,7 @@
# functions
#
-STAT_COL=$[`stty size | awk 'BEGIN { RS=" " }; END { print $1 }'` - 12]
+STAT_COL=$[`stty size | awk 'BEGIN { RS=" " }; END { print $1 }'` - 13]
deltext() {
echo -ne "\033[$(($STAT_COL+4))G"
@@ -13,29 +13,29 @@ stat_busy() {
if [ "$USECOLOR" = "YES" -o "$USECOLOR" = "yes" ]; then
echo -ne "\033[1;32m| \033[1;37m$1\033[1;0m "
awk "BEGIN { for (j=length(\"$1\"); j<$STAT_COL; j++) printf \" \" }"
- echo -ne " \033[1;34m[\033[1;33mbusy\033[1;34m]\033[1;0m"
+ echo -ne " \033[1;34m[\033[1;33mbusy\033[1;34m]\033[1;0m "
else
echo -n "| $1 "
awk "BEGIN { for (j=length(\"$1\"); j<$STAT_COL; j++) printf \" \" }"
- echo -n " [busy]"
+ echo -n " [busy] "
fi
}
stat_done() {
deltext
if [ "$USECOLOR" = "YES" -o "$USECOLOR" = "yes" ]; then
- echo -e " \033[1;34m[\033[1;32mdone\033[1;34m]\033[1;0m"
+ echo -e " \033[1;34m[\033[1;32mdone\033[1;34m] \033[1;0m"
else
- echo " [done]"
+ echo " [done] "
fi
}
stat_fail() {
deltext
if [ "$USECOLOR" = "YES" -o "$USECOLOR" = "yes" ]; then
- echo -e " \033[1;34m[\033[1;31mfail\033[1;34m]\033[1;0m"
+ echo -e " \033[1;34m[\033[1;31mfail\033[1;34m] \033[1;0m"
else
- echo " [fail]"
+ echo " [fail] "
fi
}