r3116 - jhalfs/branches/experimental/common

georgeb at linuxfromscratch.org georgeb at linuxfromscratch.org
Thu Sep 14 10:29:19 PDT 2006


Author: georgeb
Date: 2006-09-14 11:29:18 -0600 (Thu, 14 Sep 2006)
New Revision: 3116

Modified:
   jhalfs/branches/experimental/common/progress_bar.sh
Log:
minor bug fixes

Modified: jhalfs/branches/experimental/common/progress_bar.sh
===================================================================
--- jhalfs/branches/experimental/common/progress_bar.sh	2006-09-14 12:52:26 UTC (rev 3115)
+++ jhalfs/branches/experimental/common/progress_bar.sh	2006-09-14 17:29:18 UTC (rev 3116)
@@ -16,6 +16,8 @@
 declare -r  FRAME_OPEN=${CSI}$'2G['
 declare -r  FRAME_CLOSE=${CSI}$'63G]'
 declare -r  TS_POSITION=${CSI}$'65G'
+declare -r  LINE_WRAP_OFF=${CSI}$'?7l'
+declare -r  LINE_WRAP_ON=${CSI}$'?7h'
 declare -a  RESET_LINE=${CURSOR_OFF}${ERASE_LINE}${FRAME_OPEN}${FRAME_CLOSE}
 
 declare -a  GRAPHIC_STR="| / - \\ + "
@@ -34,7 +36,7 @@
 }
 
   # initialize screen
-write_or_exit "${RESET_LINE}${TS_POSITION}0 min. 0 sec. "
+write_or_exit "${RESET_LINE}${TS_POSITION}0 min. 0 sec"
 
   # loop forever..
 while true ; do
@@ -54,7 +56,7 @@
     (( PREV_SEC = SEC ))
 
       # Display the accumulated time. div minutes.. modulo seconds.
-    write_or_exit "${TS_POSITION}$(($SECONDS / 60)) min. $SEC sec. "
+    write_or_exit "${TS_POSITION}$(($SECONDS / 60)) min. $SEC sec"
 done
 
 exit




More information about the alfs-log mailing list