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 429-438 COLS="${COLUMNS:-0}" # bash's internal COLUMNS variable Link Here
429
[ -z "${COLS}" ] && COLS=80
429
[ -z "${COLS}" ] && COLS=80
430
[ "${COLS}" -gt 0 ] || COLS=80	# width of [ ok ] == 7
430
[ "${COLS}" -gt 0 ] || COLS=80	# width of [ ok ] == 7
431
431
432
if yesno "${RC_ENDCOL}"; then
432
if ! yesno "${RC_ENDCOL}"; then
433
	ENDCOL='\033[A\033['$(( COLS - 8 ))'C'
434
else
435
	ENDCOL=''
433
	ENDCOL=''
434
elif command -v tput >/dev/null 2>&1; then
435
	ENDCOL="$(tput cuu1)$(tput cuf $(( COLS - 8 )) )"
436
else
437
	ENDCOL='\033[A\033['$(( COLS - 8 ))'C'
436
fi
438
fi
437
439
438
# Setup the colors so our messages all look pretty
440
# Setup the colors so our messages all look pretty
439
- 

Return to bug 631870