Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 132280 Details for
Bug 142508
dispatch-conf need a better separator
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
clear the screen with curses if possible and fall back to system('clear')
clear_screen.patch (text/plain), 888 bytes, created by
Zac Medico
on 2007-10-01 03:17:06 UTC
(
hide
)
Description:
clear the screen with curses if possible and fall back to system('clear')
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2007-10-01 03:17:06 UTC
Size:
888 bytes
patch
obsolete
>Index: bin/dispatch-conf >=================================================================== >--- bin/dispatch-conf (revision 7876) >+++ bin/dispatch-conf (working copy) >@@ -213,6 +213,7 @@ > show_new_diff = 0 > > while 1: >+ clear_screen() > if show_new_diff: > os.system((self.options['diff']) % (conf['new'], mrgconf)) > show_new_diff = 0 >@@ -366,6 +367,19 @@ > termios.tcsetattr(fd, termios.TCSADRAIN, old_settings) > return ch > >+def clear_screen(): >+ try: >+ import curses >+ try: >+ curses.setupterm() >+ sys.stdout.write(curses.tigetstr("clear")) >+ sys.stdout.flush() >+ return >+ except curses.error: >+ pass >+ except ImportError: >+ pass >+ os.system("clear 2>/dev/null") > > # run > d = dispatch ()
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 142508
: 132280