From 4d3b1f1c221bc93fc9b3168f512b8afa8889372c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 31 Oct 2008 17:25:44 +0000 Subject: [PATCH] =?utf8?q?Bug=20#236609=20-=20Fix=20columns=20calculation?= =?utf8?q?=20for=20TERM=3D"dumb".=20Thanks=20to=20Ulrich=20M=C3=BCller=20=20for=20the=20patch.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit svn path=/main/trunk/; revision=11764 --- bin/isolated-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 09854b282..2bb98aee1 100755 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -371,7 +371,7 @@ set_colors() { (( 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)) + [[ $TERM = cons25 || $TERM = dumb ]] && ((COLS--)) # Now, ${ENDCOL} will move us to the end of the # column; irregardless of character width -- 2.26.2