Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 631870 | Differences between
and this patch

Collapse All | Expand All

(-)a/functions.sh (-4 / +5 lines)
Lines 444-453 COLS="${COLUMNS:-0}" # bash's internal COLUMNS variable Link Here
444
[ -z "$COLS" ] && COLS=80
444
[ -z "$COLS" ] && COLS=80
445
[ "$COLS" -gt 0 ] || COLS=80	# width of [ ok ] == 7
445
[ "$COLS" -gt 0 ] || COLS=80	# width of [ ok ] == 7
446
446
447
if yesno "${RC_ENDCOL}"; then
447
if ! yesno "${RC_ENDCOL}"; then
448
	ENDCOL='\033[A\033['$(( COLS - 8 ))'C'
449
else
450
	ENDCOL=''
448
	ENDCOL=''
449
elif command -v tput >/dev/null 2>&1; then
450
	ENDCOL="$(tput cuu1)$(tput cuf $(( COLS - 8 )) )"
451
else
452
	ENDCOL='\033[A\033['$(( COLS - 8 ))'C'
451
fi
453
fi
452
454
453
# Setup the colors so our messages all look pretty
455
# Setup the colors so our messages all look pretty
454
- 

Return to bug 631870