# HG changeset patch # User Christophe Lincoln # Date 1487231604 -3600 # Node ID bbda30c03aff90c142e8d3f5602fcf8dceb75e7d # Parent 18f5344d488c2ae49e4b4cac94ce3d1c08966394 libtaz.sh: indent status() as orgininaly (so many cmdline tools use it, we must an other way for log files) diff -r 18f5344d488c -r bbda30c03aff rootfs/lib/libtaz.sh --- a/rootfs/lib/libtaz.sh Sat Jan 21 16:53:47 2017 +0200 +++ b/rootfs/lib/libtaz.sh Thu Feb 16 08:53:24 2017 +0100 @@ -63,7 +63,10 @@ case $output in raw|gtk) echo " $msg";; html) echo " $msg";; - *) echo -e "[ \\033[1;${color}m$msg\\033[0;39m ]";; + *) + local cols=$(get_cols) + local scol=$((${cols:-80} - 10)) + echo -e "\\033[${scol}G[ \\033[1;${color}m$msg\\033[0;39m ]";; esac }