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

Collapse All | Expand All

(-)pym/portage/output.py (+3 lines)
Lines 277-282 Link Here
277
				pass
277
				pass
278
		if columns <= 0:
278
		if columns <= 0:
279
			columns = 80
279
			columns = 80
280
		# Adjust columns so that eend works properly on a standard BSD console.
281
		if os.environ.get("TERM") == "cons25":
282
			columns = columns - 1
280
		self.term_columns = columns
283
		self.term_columns = columns
281
284
282
	def __eend(self, caller, errno, msg):
285
	def __eend(self, caller, errno, msg):
(-)bin/isolated-functions.sh (+2 lines)
Lines 279-284 Link Here
279
	(( COLS == 0 )) && COLS=$(set -- $(stty size 2>/dev/null) ; echo $2)
279
	(( COLS == 0 )) && COLS=$(set -- $(stty size 2>/dev/null) ; echo $2)
280
	(( COLS > 0 )) || (( COLS = 80 ))
280
	(( COLS > 0 )) || (( COLS = 80 ))
281
	COLS=$((${COLS} - 8))	# width of [ ok ] == 7
281
	COLS=$((${COLS} - 8))	# width of [ ok ] == 7
282
	# Adjust COLS so that eend works properly on a standard BSD console.
283
	[ "${TERM}" = "cons25" ] && COLS=$((${COLS} - 1))
282
284
283
	ENDCOL=$'\e[A\e['${COLS}'C'    # Now, ${ENDCOL} will move us to the end of the
285
	ENDCOL=$'\e[A\e['${COLS}'C'    # Now, ${ENDCOL} will move us to the end of the
284
	                               # column;  irregardless of character width
286
	                               # column;  irregardless of character width

Return to bug 309149