1 |
Author: zmedico |
2 |
Date: 2008-10-31 17:25:44 +0000 (Fri, 31 Oct 2008) |
3 |
New Revision: 11764 |
4 |
|
5 |
Modified: |
6 |
main/trunk/bin/isolated-functions.sh |
7 |
Log: |
8 |
Bug #236609 - Fix columns calculation for TERM="dumb". Thanks to Ulrich M?\195?\188ller |
9 |
<ulm@g.o> for the patch. |
10 |
|
11 |
|
12 |
Modified: main/trunk/bin/isolated-functions.sh |
13 |
=================================================================== |
14 |
--- main/trunk/bin/isolated-functions.sh 2008-10-31 05:07:28 UTC (rev 11763) |
15 |
+++ main/trunk/bin/isolated-functions.sh 2008-10-31 17:25:44 UTC (rev 11764) |
16 |
@@ -371,7 +371,7 @@ |
17 |
(( COLS > 0 )) || (( COLS = 80 )) |
18 |
COLS=$((${COLS} - 8)) # width of [ ok ] == 7 |
19 |
# Adjust COLS so that eend works properly on a standard BSD console. |
20 |
- [ "${TERM}" = "cons25" ] && COLS=$((${COLS} - 1)) |
21 |
+ [[ $TERM = cons25 || $TERM = dumb ]] && ((COLS--)) |
22 |
|
23 |
# Now, ${ENDCOL} will move us to the end of the |
24 |
# column; irregardless of character width |