Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 223399 Details for
Bug 309149
eend output position should be unified in python & bash implementation
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bsd cons25 columns adjustment from svn r6467
bsd-cons25.patch (text/plain), 1.09 KB, created by
Zac Medico
on 2010-03-13 11:27:28 UTC
(
hide
)
Description:
bsd cons25 columns adjustment from svn r6467
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2010-03-13 11:27:28 UTC
Size:
1.09 KB
patch
obsolete
>Index: pym/portage/output.py >=================================================================== >--- pym/portage/output.py (revision 6466) >+++ pym/portage/output.py (revision 6467) >@@ -277,6 +277,9 @@ > pass > if columns <= 0: > columns = 80 >+ # Adjust columns so that eend works properly on a standard BSD console. >+ if os.environ.get("TERM") == "cons25": >+ columns = columns - 1 > self.term_columns = columns > > def __eend(self, caller, errno, msg): >Index: bin/isolated-functions.sh >=================================================================== >--- bin/isolated-functions.sh (revision 6466) >+++ bin/isolated-functions.sh (revision 6467) >@@ -279,6 +279,8 @@ > (( COLS == 0 )) && COLS=$(set -- $(stty size 2>/dev/null) ; echo $2) > (( 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)) > > ENDCOL=$'\e[A\e['${COLS}'C' # Now, ${ENDCOL} will move us to the end of the > # column; irregardless of character width
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 309149
:
223383
| 223399 |
224351
|
224455
|
224457