summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-05-02 17:23:44 +0000
committerZac Medico <zmedico@gentoo.org>2007-05-02 17:23:44 +0000
commitf40175fcbd5a83735af0e0feee24f648478658eb (patch)
tree499ad032991ff32f67569aaf1c97d1fbebbe6746 /bin/isolated-functions.sh
parentFor bug #175058, avoid potential quoting issues by spawning FETCHCOMMAND with... (diff)
downloadportage-multirepo-f40175fcbd5a83735af0e0feee24f648478658eb.tar.gz
portage-multirepo-f40175fcbd5a83735af0e0feee24f648478658eb.tar.bz2
portage-multirepo-f40175fcbd5a83735af0e0feee24f648478658eb.zip
Fix eend so that it works properly on a standard BSD console. Thanks to UberLord. (trunk r6466:6467)
svn path=/main/branches/2.1.2/; revision=6468
Diffstat (limited to 'bin/isolated-functions.sh')
-rw-r--r--[-rwxr-xr-x]bin/isolated-functions.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index 5aa838ba..01fbbf27 100755..100644
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -206,6 +206,8 @@ set_colors() {
(( COLS == 0 )) && COLS=$(set -- $(stty size 2>/dev/null) ; echo $2)
(( COLS > 0 )) || (( COLS = 80 ))
COLS=$((${COLS} - 8)) # width of [ ok ] == 7
+ # Adjust COLS so that eend works properly on a standard BSD console.
+ [ "${TERM}" = "cons25" ] && COLS=$((${COLS} - 1))
ENDCOL=$'\e[A\e['${COLS}'C' # Now, ${ENDCOL} will move us to the end of the
# column; irregardless of character width